mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix an issue with generate_pretty and empty objects in the Ruby and Java implementations
This commit is contained in:
parent
520e0916af
commit
451836f582
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,11 @@ EOT
|
|||
end
|
||||
|
||||
def test_generate_pretty
|
||||
json = pretty_generate({})
|
||||
assert_equal(<<'EOT'.chomp, json)
|
||||
{
|
||||
}
|
||||
EOT
|
||||
json = pretty_generate(@hash)
|
||||
# hashes aren't (insertion) ordered on every ruby implementation
|
||||
# assert_equal(@json3, json)
|
||||
|
|
Loading…
Reference in a new issue