Fix an issue with generate_pretty and empty objects in the Ruby and Java implementations

This commit is contained in:
Chris Seaton 2020-10-07 03:13:48 +01:00 коммит произвёл Hiroshi SHIBATA
Родитель 520e0916af
Коммит 451836f582
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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)