From 5ff96daa7f57c1633a6211964970d7afa7fe0b9a Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 12 Sep 2025 11:33:31 -0400 Subject: [PATCH] Fixed failing tests as of MRuby 3.4.0 Fixed two minor errors in the unit tests that were causing them to fail when built against MRuby 3.4.0. --- test/json.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/json.rb b/test/json.rb index f895d31..88fe1e2 100644 --- a/test/json.rb +++ b/test/json.rb @@ -32,7 +32,7 @@ assert_equal '{"foo":null}', JSON.stringify({"foo"=> nil}) end assert('stringify object with object key and float value') do - assert_equal '{"{\"foo\"=>\"bar\"}":1.5}', JSON.stringify({{"foo"=> "bar"}=> 1.5}) + assert_equal '{"{\"foo\" => \"bar\"}":1.5}', JSON.stringify({{"foo"=> "bar"}=> 1.5}) end assert('stringify empty array') do assert_equal "[]", JSON.stringify([]) @@ -145,6 +145,6 @@ def to_s();@s;end assert_equal({"foo"=>"bar"}, o) o = nil - assert_raise(JSON::ParserError) { JSON.load '{' {|x| o = x} } + assert_raise(JSON::ParserError) { JSON.load('{') {|x| o = x} } assert_equal(nil, o) end