summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-09-05 15:02:07 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-09-05 15:02:44 +0900
commit436099ee0459ee51ceccb3eb343a5f281556bf61 (patch)
tree6b34571d866cf2885e95f9de501e37595059f1ca /bootstraptest
parent8a608f1b1f9812d0bd1d7589a03e8abd653b8364 (diff)
add tests
Some coverage improvements.
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_insns.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb
index 9deb57cf23..3d7f9640a2 100644
--- a/bootstraptest/test_insns.rb
+++ b/bootstraptest/test_insns.rb
@@ -204,6 +204,8 @@ tests = [
[ 'opt_str_freeze', %q{ 'true'.freeze }, ],
[ 'opt_nil_p', %q{ nil.nil? }, ],
+ [ 'opt_nil_p', %q{ !Object.nil? }, ],
+ [ 'opt_nil_p', %q{ Class.new{def nil?; true end}.new.nil? }, ],
[ 'opt_str_uminus', %q{ -'true' }, ],
[ 'opt_str_freeze', <<-'},', ], # {
class String