mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
return value from #object_id may not be Fixnum; ref #1630
This commit is contained in:
+1
-9
@@ -388,15 +388,7 @@ assert('Kernel#object_id', '15.3.1.3.33') do
|
||||
a = ""
|
||||
b = ""
|
||||
assert_not_equal a.object_id, b.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
|
||||
assert_not_equal 1.object_id, 1.2.object_id
|
||||
end
|
||||
|
||||
# Kernel#p is defined in mruby-print mrbgem. '15.3.1.3.34'
|
||||
|
||||
Reference in New Issue
Block a user