diff options
Diffstat (limited to 'bootstraptest/test_rjit.rb')
-rw-r--r-- | bootstraptest/test_rjit.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bootstraptest/test_rjit.rb b/bootstraptest/test_rjit.rb new file mode 100644 index 0000000000..c00c742318 --- /dev/null +++ b/bootstraptest/test_rjit.rb @@ -0,0 +1,16 @@ +assert_equal 'true', %q{ + def nil_nil = nil == nil + nil_nil +} + +assert_equal 'true', %q{ + def lt(a, b) = a < b + lt(1, 2) + lt('a', 'b') +} + +assert_equal '3', %q{ + def foo = 2 + def bar = 1 + foo + nil.to_i + bar +} |