diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-09 09:27:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-09 09:27:38 +0000 |
commit | 7f6410f02d3092075b9990705d0151ffb44f51a1 (patch) | |
tree | f5431ced6fbdb52a71e666e7f461ae5e1a0c7b84 /test/json/json_generator_test.rb | |
parent | 646c53895f80358d153d04f04b726d0d14388cf2 (diff) | |
download | ruby-7f6410f02d3092075b9990705d0151ffb44f51a1.tar.gz |
json_generator_test.rb: no Bignum
* test/json/json_generator_test.rb (test_broken_bignum): get rid
of use of Bignum, obsolete name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/json/json_generator_test.rb')
-rwxr-xr-x[-rw-r--r--] | test/json/json_generator_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/json/json_generator_test.rb b/test/json/json_generator_test.rb index 18b08337f8..86be398f46 100644..100755 --- a/test/json/json_generator_test.rb +++ b/test/json/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 |