aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json
diff options
context:
space:
mode:
authordieash <dieash@yandex-team.ru>2022-02-10 16:47:26 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:26 +0300
commitd0d68c395c10da4cb56a1c845504570a04d7893e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/json
parentca90a6cd8db55c2a8716f5197e643d173949ee45 (diff)
downloadydb-d0d68c395c10da4cb56a1c845504570a04d7893e.tar.gz
Restoring authorship annotation for <dieash@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json')
-rw-r--r--library/cpp/json/ut/json_reader_ut.cpp20
1 files changed, 10 insertions, 10 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());