summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-11-09 01:53:01 +0100
committerFlorian Frank <flori@ping.de>2011-11-09 23:21:40 +0100
commitf1f0090a8b4bf3afd1f8e7d790236691386fd398 (patch)
tree118649d775a70f1089c9f0970fb2fa20db5ccc38
parenta4e599122fc0a6b849350c7cf4aa0721b0d45c3c (diff)
downloadjson-f1f0090a8b4bf3afd1f8e7d790236691386fd398.tar.gz
start to make buffer_initial_length configurable
-rwxr-xr-xtests/test_json_generate.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_json_generate.rb b/tests/test_json_generate.rb
index a528209..29ea7ce 100755
--- a/tests/test_json_generate.rb
+++ b/tests/test_json_generate.rb
@@ -208,6 +208,8 @@ EOT
assert_equal 4096, s.buffer_initial_length
s.buffer_initial_length = -1
assert_equal 4096, s.buffer_initial_length
+ s.buffer_initial_length = 128
+ assert_equal 128, s.buffer_initial_length
end
def test_gc