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