2003-09-04 16:18:59 +00:00
|
|
|
require 'test/unit'
|
|
|
|
|
|
|
|
class TestCondition < Test::Unit::TestCase
|
|
|
|
|
|
|
|
# [should] first test to see if we can run the tests.
|
|
|
|
|
|
|
|
def test_condition
|
|
|
|
$x = '0';
|
2003-09-05 15:15:43 +00:00
|
|
|
|
2003-09-04 16:18:59 +00:00
|
|
|
$x == $x && assert(true)
|
|
|
|
$x != $x && assert(false)
|
|
|
|
$x == $x || assert(false)
|
|
|
|
$x != $x || assert(true)
|
2003-09-05 15:15:43 +00:00
|
|
|
|
2003-09-04 16:18:59 +00:00
|
|
|
end
|
|
|
|
end
|