Fix an issue with generate_pretty and empty objects in the Ruby and Java implementations
This commit is contained in:
parent
520e0916af
commit
451836f582
@ -92,6 +92,11 @@ EOT
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_generate_pretty
|
def test_generate_pretty
|
||||||
|
json = pretty_generate({})
|
||||||
|
assert_equal(<<'EOT'.chomp, json)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
EOT
|
||||||
json = pretty_generate(@hash)
|
json = pretty_generate(@hash)
|
||||||
# hashes aren't (insertion) ordered on every ruby implementation
|
# hashes aren't (insertion) ordered on every ruby implementation
|
||||||
# assert_equal(@json3, json)
|
# assert_equal(@json3, json)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user