diff options
author | dieash <dieash@yandex-team.ru> | 2022-02-10 16:47:26 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:26 +0300 |
commit | d0d68c395c10da4cb56a1c845504570a04d7893e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library | |
parent | ca90a6cd8db55c2a8716f5197e643d173949ee45 (diff) | |
download | ydb-d0d68c395c10da4cb56a1c845504570a04d7893e.tar.gz |
Restoring authorship annotation for <dieash@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/json/ut/json_reader_ut.cpp | 20 | ||||
-rw-r--r-- | library/cpp/ya.make | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/json/ut/json_reader_ut.cpp b/library/cpp/json/ut/json_reader_ut.cpp index c99916c5c8..cd31afa0b8 100644 --- a/library/cpp/json/ut/json_reader_ut.cpp +++ b/library/cpp/json/ut/json_reader_ut.cpp @@ -126,7 +126,7 @@ Y_UNIT_TEST_SUITE(TJsonReaderTest) { TJsonValue value; ReadJsonTree(&in, &value); - UNIT_ASSERT_VALUES_EQUAL(value["intkey"].GetInteger(), 10); + UNIT_ASSERT_VALUES_EQUAL(value["intkey"].GetInteger(), 10); UNIT_ASSERT_DOUBLES_EQUAL(value["double key"].GetDouble(), 11.11, 0.001); UNIT_ASSERT_VALUES_EQUAL(value["bool key"].GetBoolean(), true); UNIT_ASSERT_VALUES_EQUAL(value["absent string key"].GetString(), TString("")); @@ -134,17 +134,17 @@ Y_UNIT_TEST_SUITE(TJsonReaderTest) { UNIT_ASSERT_VALUES_EQUAL(value["array"][0].GetInteger(), 1); UNIT_ASSERT_VALUES_EQUAL(value["array"][1].GetInteger(), 2); UNIT_ASSERT_VALUES_EQUAL(value["array"][2].GetInteger(), 3); - UNIT_ASSERT_VALUES_EQUAL(value["array"][3].GetString(), TString("TString")); + UNIT_ASSERT_VALUES_EQUAL(value["array"][3].GetString(), TString("TString")); UNIT_ASSERT(value["null value"].IsNull()); - // AsString - UNIT_ASSERT_VALUES_EQUAL(value["intkey"].GetStringRobust(), "10"); - UNIT_ASSERT_VALUES_EQUAL(value["double key"].GetStringRobust(), "11.11"); - UNIT_ASSERT_VALUES_EQUAL(value["bool key"].GetStringRobust(), "true"); - UNIT_ASSERT_VALUES_EQUAL(value["string key"].GetStringRobust(), "string"); - UNIT_ASSERT_VALUES_EQUAL(value["array"].GetStringRobust(), "[1,2,3,\"TString\"]"); - UNIT_ASSERT_VALUES_EQUAL(value["null value"].GetStringRobust(), "null"); - + // AsString + UNIT_ASSERT_VALUES_EQUAL(value["intkey"].GetStringRobust(), "10"); + UNIT_ASSERT_VALUES_EQUAL(value["double key"].GetStringRobust(), "11.11"); + UNIT_ASSERT_VALUES_EQUAL(value["bool key"].GetStringRobust(), "true"); + UNIT_ASSERT_VALUES_EQUAL(value["string key"].GetStringRobust(), "string"); + UNIT_ASSERT_VALUES_EQUAL(value["array"].GetStringRobust(), "[1,2,3,\"TString\"]"); + UNIT_ASSERT_VALUES_EQUAL(value["null value"].GetStringRobust(), "null"); + const TJsonValue::TArray* array; UNIT_ASSERT(GetArrayPointer(value, "array", &array)); UNIT_ASSERT_VALUES_EQUAL(value["array"].GetArray().size(), array->size()); diff --git a/library/cpp/ya.make b/library/cpp/ya.make index cb27e9445b..8c1193b007 100644 --- a/library/cpp/ya.make +++ b/library/cpp/ya.make @@ -166,8 +166,8 @@ RECURSE( int128/ut introspection ipmath - ipreg - ipreg/ut + ipreg + ipreg/ut ipv6_address ipv6_address/ut iterator |