зеркало из https://github.com/github/ruby.git
Fix an issue with generate_pretty and empty objects in the Ruby and Java implementations
This commit is contained in:
Родитель
520e0916af
Коммит
451836f582
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче