aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/scheme/tests
diff options
context:
space:
mode:
authora-sidorin <a-sidorin@yandex-team.ru>2022-02-10 16:50:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:02 +0300
commit4ffc252d74adad4b93762976940ef53012cb98df (patch)
tree952cbe0b436f3e57e08bf18a38893ef5214f6562 /library/cpp/scheme/tests
parent0d6462b7e878d92e0a81ff7d47886837220f4a1a (diff)
downloadydb-4ffc252d74adad4b93762976940ef53012cb98df.tar.gz
Restoring authorship annotation for <a-sidorin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/scheme/tests')
-rw-r--r--library/cpp/scheme/tests/ut/scheme_json_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/scheme/tests/ut/scheme_json_ut.cpp b/library/cpp/scheme/tests/ut/scheme_json_ut.cpp
index daeb2654f9..b8aca8058a 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));