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.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/ruby/test_condition.rb b/test/ruby/test_condition.rb
new file mode 100644
index 0000000000..ab0ffc4b6a
--- /dev/null
+++ b/test/ruby/test_condition.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: false
+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