diff options
author | Sergey Polovko <sergey@polovko.me> | 2022-02-10 16:47:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:02 +0300 |
commit | 3e0b762a82514bac89c1dd6ea7211e381d8aa248 (patch) | |
tree | c2d1b379ecaf05ca8f11ed0b5da9d1a950e6e554 /library/cpp/scheme/tests/ut | |
parent | ab3783171cc30e262243a0227c86118f7080c896 (diff) | |
download | ydb-3e0b762a82514bac89c1dd6ea7211e381d8aa248.tar.gz |
Restoring authorship annotation for Sergey Polovko <sergey@polovko.me>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/scheme/tests/ut')
-rw-r--r-- | library/cpp/scheme/tests/ut/scheme_json_ut.cpp | 2 | ||||
-rw-r--r-- | library/cpp/scheme/tests/ut/scheme_merge_ut.cpp | 6 | ||||
-rw-r--r-- | library/cpp/scheme/tests/ut/scheme_path_ut.cpp | 8 | ||||
-rw-r--r-- | library/cpp/scheme/tests/ut/scheme_ut.cpp | 2 |
4 files changed, 9 insertions, 9 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..23f6e1a346 100644 --- a/library/cpp/scheme/tests/ut/scheme_json_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_json_ut.cpp @@ -60,7 +60,7 @@ Y_UNIT_TEST_SUITE(TSchemeJsonTest) { } { const char* json = "[a:b]"; - UNIT_ASSERT(NSc::TValue::FromJson(json).IsNull()); + UNIT_ASSERT(NSc::TValue::FromJson(json).IsNull()); } { UNIT_ASSERT_VALUES_EQUAL("{\n \"a\" : \"b\",\n \"c\" : \"d\"\n}", diff --git a/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp b/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp index 2a06cf110d..8658e6c6e8 100644 --- a/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_merge_ut.cpp @@ -30,7 +30,7 @@ Y_UNIT_TEST_SUITE(TSchemeMergeTest) { TStringBuf data = "{ a : [ { b : 1, d : { e : -1.e5 } }, { f : 0, g : [ h, i ] } ] }"; NSc::TValue v = NSc::TValue::FromJson(data); UNIT_ASSERT_VALUES_EQUAL(v.ToJson(true), v.Clone().ToJson(true)); - UNIT_ASSERT(v.Has("a")); + UNIT_ASSERT(v.Has("a")); UNIT_ASSERT(v["a"].Has(1)); UNIT_ASSERT(v["a"][0].Has("b")); UNIT_ASSERT(v["a"][0].Has("d")); @@ -62,8 +62,8 @@ Y_UNIT_TEST_SUITE(TSchemeMergeTest) { UNIT_ASSERT_C(NSc::TValue::Equal(v["a"], v2), Sprintf("\n%s\n!=\n%s\n", v["a"].ToJson().data(), v2.ToJson().data())); } - UNIT_ASSERT(v.Has("a")); - UNIT_ASSERT(v.Has("q")); + UNIT_ASSERT(v.Has("a")); + UNIT_ASSERT(v.Has("q")); UNIT_ASSERT(TStringBuf("r") == v["q"]); UNIT_ASSERT(v["a"].Has(1)); UNIT_ASSERT(!v["a"][0].Has("b")); diff --git a/library/cpp/scheme/tests/ut/scheme_path_ut.cpp b/library/cpp/scheme/tests/ut/scheme_path_ut.cpp index 0d4d79d483..45026fbdb2 100644 --- a/library/cpp/scheme/tests/ut/scheme_path_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_path_ut.cpp @@ -18,9 +18,9 @@ Y_UNIT_TEST_SUITE(TSchemePathTest) { *v.TrySelectOrAdd(path) = 1; NSc::NUt::AssertSchemeJson(expected, v); UNIT_ASSERT(v.PathExists(path)); - UNIT_ASSERT(1 == v.TrySelectOrAdd(path)->GetNumber()); - UNIT_ASSERT(1 == v.TrySelect(path).GetNumber()); - UNIT_ASSERT(1 == v.TrySelectAndDelete(path).GetNumber()); + UNIT_ASSERT(1 == v.TrySelectOrAdd(path)->GetNumber()); + UNIT_ASSERT(1 == v.TrySelect(path).GetNumber()); + UNIT_ASSERT(1 == v.TrySelectAndDelete(path).GetNumber()); UNIT_ASSERT(NSc::TValue::Same(v.TrySelectAndDelete(path), NSc::Null())); NSc::NUt::AssertSchemeJson(delexpected, v); UNIT_ASSERT(!v.PathExists(path)); @@ -29,7 +29,7 @@ Y_UNIT_TEST_SUITE(TSchemePathTest) { Y_UNIT_TEST(TestSelect) { NSc::TValue v; - UNIT_ASSERT(!v.PathValid(" ")); + UNIT_ASSERT(!v.PathValid(" ")); UNIT_ASSERT(v.PathExists("")); UNIT_ASSERT(v.PathExists("//")); diff --git a/library/cpp/scheme/tests/ut/scheme_ut.cpp b/library/cpp/scheme/tests/ut/scheme_ut.cpp index 1a5d07c31b..e49ac959ff 100644 --- a/library/cpp/scheme/tests/ut/scheme_ut.cpp +++ b/library/cpp/scheme/tests/ut/scheme_ut.cpp @@ -526,7 +526,7 @@ Y_UNIT_TEST_SUITE(TSchemeTest) { UNIT_ASSERT(2 > NSc::TValue(1)); UNIT_ASSERT(NSc::TValue(1) < 2); - UNIT_ASSERT(TString("test") == NSc::TValue("test")); + UNIT_ASSERT(TString("test") == NSc::TValue("test")); } Y_UNIT_TEST(TestDestructor) { |