summaryrefslogtreecommitdiff
path: root/test/ruby/test_condition.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_condition.rb')
-rw-r--r--test/ruby/test_condition.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ruby/test_condition.rb b/test/ruby/test_condition.rb
new file mode 100644
index 0000000000..303521f95f
--- /dev/null
+++ b/test/ruby/test_condition.rb
@@ -0,0 +1,18 @@
+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