diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2016-09-09 18:30:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2016-09-09 18:34:47 +0900 |
commit | 4c87156e86fb907ceeaa7b44715f79da03c57d68 (patch) | |
tree | d597a38c8e122ee05ba768b97534d899b71632a3 /tests | |
parent | 7347860b1dc3bcb0d68c1ee7e6207cd7ea97b806 (diff) | |
download | json-4c87156e86fb907ceeaa7b44715f79da03c57d68.tar.gz |
Get rid of use of Bignum, obsolete name
Diffstat (limited to 'tests')
-rw-r--r-- | tests/json_generator_test.rb | 5 |
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 |