summaryrefslogtreecommitdiffhomepage
path: root/test/t/kernel.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-01-01 12:24:20 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-01-01 12:24:20 +0900
commite8dd8180baae425c893e1054368a4c32c99ea805 (patch)
tree129d9e0078b7a8d569a67a22706a27cdbc544390 /test/t/kernel.rb
parent047f318cf92e946d04bf6b84ceb8861e7175d20b (diff)
downloadmruby-e8dd8180baae425c893e1054368a4c32c99ea805.tar.gz
mruby-e8dd8180baae425c893e1054368a4c32c99ea805.zip
return value from #object_id may not be Fixnum; ref #1630
Diffstat (limited to 'test/t/kernel.rb')
-rw-r--r--test/t/kernel.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb
index 9c10bfef6..a78bfe35f 100644
--- a/test/t/kernel.rb
+++ b/test/t/kernel.rb
@@ -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'