summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_condition.rb
blob: ba2e0688f3d833b81bcca6e30188276a2520aa2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'test/unit'

class TestCondition < Test::Unit::TestCase

  # [should] first test to see if we can run the tests.

  def test_condition
    $x = '0';

    $x == $x && assert(true)
    $x != $x && assert(false)
    $x == $x || assert(false)
    $x != $x || assert(true)

  end
end