1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add tests

Some coverage improvements.
This commit is contained in:
卜部昌平 2019-09-05 15:02:07 +09:00
parent 8a608f1b1f
commit 436099ee04

View file

@ -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