summaryrefslogtreecommitdiff
path: root/test/json/json_coder_test.rb
diff options
context:
space:
mode:
authorÉtienne Barrié <etienne.barrie@gmail.com>2025-11-24 17:41:33 +0100
committergit <svn-admin@ruby-lang.org>2025-11-27 13:01:57 +0000
commit2f192c73cccdfd81e4ac2206feadc48b2757c19c (patch)
treec688c5a1b5b11013c9fed645cfeb6dd700594c48 /test/json/json_coder_test.rb
parent78aa8d5b1d62a04d7cb5492f653266c99f4c55a2 (diff)
[ruby/json] Respect Coder depth when generating
https://github.com/ruby/json/commit/9c36681b17
Diffstat (limited to 'test/json/json_coder_test.rb')
-rwxr-xr-xtest/json/json_coder_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json/json_coder_test.rb b/test/json/json_coder_test.rb
index 1f9bc814e3..47e12ff919 100755
--- a/test/json/json_coder_test.rb
+++ b/test/json/json_coder_test.rb
@@ -134,7 +134,7 @@ class JSONCoderTest < Test::Unit::TestCase
def test_depth
coder = JSON::Coder.new(object_nl: "\n", array_nl: "\n", space: " ", indent: " ", depth: 1)
- assert_equal %({\n "foo": 42\n}), coder.dump(foo: 42)
+ assert_equal %({\n "foo": 42\n }), coder.dump(foo: 42)
end
def test_nesting_recovery