From 9473a88c91129dfe21343af486bebb93a0b33291 Mon Sep 17 00:00:00 2001 From: a-sidorin <a-sidorin@yandex-team.ru> Date: Thu, 10 Feb 2022 16:50:02 +0300 Subject: Restoring authorship annotation for <a-sidorin@yandex-team.ru>. Commit 2 of 2. --- library/cpp/scheme/tests/ut/scheme_json_ut.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'library/cpp/scheme/tests/ut/scheme_json_ut.cpp') diff --git a/library/cpp/scheme/tests/ut/scheme_json_ut.cpp b/library/cpp/scheme/tests/ut/scheme_json_ut.cpp index b8aca8058a..daeb2654f9 100644 --- a/library/cpp/scheme/tests/ut/scheme_json_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_json_ut.cpp @@ -138,19 +138,19 @@ Y_UNIT_TEST_SUITE(TSchemeJsonTest) { UNIT_ASSERT_JSON_EQ_JSON(a, b); } - Y_UNIT_TEST(TestJsonEmptyContainers) { - { - NSc::TValue a = NSc::NUt::AssertFromJson("{a:[]}"); - NSc::TValue b = NSc::TValue::FromJsonValue(a.ToJsonValue()); - UNIT_ASSERT_JSON_EQ_JSON(a, b); - } - { - NSc::TValue a = NSc::NUt::AssertFromJson("{a:{}}"); - NSc::TValue b = NSc::TValue::FromJsonValue(a.ToJsonValue()); - UNIT_ASSERT_JSON_EQ_JSON(a, b); - } - } - + Y_UNIT_TEST(TestJsonEmptyContainers) { + { + NSc::TValue a = NSc::NUt::AssertFromJson("{a:[]}"); + NSc::TValue b = NSc::TValue::FromJsonValue(a.ToJsonValue()); + UNIT_ASSERT_JSON_EQ_JSON(a, b); + } + { + NSc::TValue a = NSc::NUt::AssertFromJson("{a:{}}"); + NSc::TValue b = NSc::TValue::FromJsonValue(a.ToJsonValue()); + UNIT_ASSERT_JSON_EQ_JSON(a, b); + } + } + Y_UNIT_TEST(TestDuplicateKeys) { const TStringBuf duplicatedKeys = "{\"a\":[{\"b\":1, \"b\":42}]}"; UNIT_ASSERT_NO_EXCEPTION(NSc::TValue::FromJsonThrow(duplicatedKeys)); -- cgit v1.2.3