return value from #object_id may not be Fixnum; ref #1630

parent 047f318c
...@@ -388,15 +388,7 @@ assert('Kernel#object_id', '15.3.1.3.33') do ...@@ -388,15 +388,7 @@ assert('Kernel#object_id', '15.3.1.3.33') do
a = "" a = ""
b = "" b = ""
assert_not_equal a.object_id, b.object_id assert_not_equal a.object_id, b.object_id
assert_not_equal 1.object_id, 1.2.object_id
assert_kind_of Fixnum, object_id
assert_kind_of Fixnum, "".object_id
assert_kind_of Fixnum, true.object_id
assert_kind_of Fixnum, false.object_id
assert_kind_of Fixnum, nil.object_id
assert_kind_of Fixnum, :no.object_id
assert_kind_of Fixnum, 1.object_id
assert_kind_of Fixnum, 1.0.object_id
end end
# Kernel#p is defined in mruby-print mrbgem. '15.3.1.3.34' # Kernel#p is defined in mruby-print mrbgem. '15.3.1.3.34'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment