ruby-changes:57539
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 5 Sep 2019 15:03:06 +0900 (JST)
Subject: [ruby-changes:57539] 436099ee04 (master): add tests
https://git.ruby-lang.org/ruby.git/commit/?id=436099ee04 From 436099ee0459ee51ceccb3eb343a5f281556bf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Thu, 5 Sep 2019 15:02:07 +0900 Subject: add tests Some coverage improvements. diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb index 9deb57c..3d7f964 100644 --- a/bootstraptest/test_insns.rb +++ b/bootstraptest/test_insns.rb @@ -204,6 +204,8 @@ tests = [ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_insns.rb#L204 [ '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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/