ruby--ruby/test/ruby/test_condition.rb

19 lines
304 B
Ruby

require 'test/unit'
$KCODE = 'none'
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