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 | ca90a6cd8db55c2a8716f5197e643d173949ee45 (patch) | |
tree | 153fb1b87443aca614948fda2f9e7f652ef7c141 /library/cpp | |
parent | b71cb79039a5ce17476c821883ef2e62eb4179d2 (diff) | |
download | ydb-ca90a6cd8db55c2a8716f5197e643d173949ee45.tar.gz |
Restoring authorship annotation for <dieash@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp')
-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 cd31afa0b8..c99916c5c8 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 8c1193b007..cb27e9445b 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 |