summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2016-09-09 18:30:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2016-09-09 18:34:47 +0900
commit4c87156e86fb907ceeaa7b44715f79da03c57d68 (patch)
treed597a38c8e122ee05ba768b97534d899b71632a3 /tests
parent7347860b1dc3bcb0d68c1ee7e6207cd7ea97b806 (diff)
downloadjson-4c87156e86fb907ceeaa7b44715f79da03c57d68.tar.gz
Get rid of use of Bignum, obsolete name
Diffstat (limited to 'tests')
-rw-r--r--tests/json_generator_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/json_generator_test.rb b/tests/json_generator_test.rb
index 18b0833..86be398 100644
--- a/tests/json_generator_test.rb
+++ b/tests/json_generator_test.rb
@@ -277,12 +277,13 @@ EOT
if defined?(JSON::Ext::Generator)
def test_broken_bignum # [ruby-core:38867]
pid = fork do
- Bignum.class_eval do
+ x = 1 << 64
+ x.class.class_eval do
def to_s
end
end
begin
- JSON::Ext::Generator::State.new.generate(1<<64)
+ JSON::Ext::Generator::State.new.generate(x)
exit 1
rescue TypeError
exit 0