modules/mruby/test/t/nil.rb in webruby-0.2.7 vs modules/mruby/test/t/nil.rb in webruby-0.9.1
- old
+ new
@@ -3,9 +3,14 @@
assert('NilClass', '15.2.4') do
assert_equal Class, NilClass.class
end
+assert('NilClass', '15.2.4.1') do
+ assert_equal NilClass, nil.class
+ assert_false NilClass.method_defined? :new
+end
+
assert('NilClass#&', '15.2.4.3.1') do
assert_false nil.&(true)
assert_false nil.&(nil)
end