aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-09 09:27:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-09 09:27:38 +0000
commitbd89682ebf3c0cbf3bf0b7faa30778287596256c (patch)
treef5431ced6fbdb52a71e666e7f461ae5e1a0c7b84
parenteff05531058813e423a3ea77d97f5c4aa7a78dae (diff)
downloadruby-bd89682ebf3c0cbf3bf0b7faa30778287596256c.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
-rwxr-xr-x[-rw-r--r--]test/json/json_generator_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/json/json_generator_test.rb b/test/json/json_generator_test.rb
index 18b0833..86be398 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