diff options
author | antoshkka <antoshkka@yandex-team.ru> | 2022-02-10 16:50:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:14 +0300 |
commit | 90277959ac43a22ec25e7b78b1a2b4f610530d51 (patch) | |
tree | 83f00e4f33f9a449c5f5a871ad9330211c595f5c /library/cpp/json/writer/json_value_ut.cpp | |
parent | 9a6b05f93140131e64aa069bad7092698970130d (diff) | |
download | ydb-90277959ac43a22ec25e7b78b1a2b4f610530d51.tar.gz |
Restoring authorship annotation for <antoshkka@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/writer/json_value_ut.cpp')
-rw-r--r-- | library/cpp/json/writer/json_value_ut.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/json/writer/json_value_ut.cpp b/library/cpp/json/writer/json_value_ut.cpp index dc7f6affdf..c41a227cc9 100644 --- a/library/cpp/json/writer/json_value_ut.cpp +++ b/library/cpp/json/writer/json_value_ut.cpp @@ -608,21 +608,21 @@ Y_UNIT_TEST_SUITE(TJsonValueTest) { } Y_UNIT_TEST(MoveSubpartToSelf) { - TJsonValue json; - json[0] = "testing 0"; - json[1] = "testing 1"; - json[2] = "testing 2"; - json = std::move(json[1]); - UNIT_ASSERT_VALUES_EQUAL(json.GetString(), "testing 1"); - - const char* longTestString = - "Testing TJsonValue& operator=(TJsonValue&&) subpart self moving " + TJsonValue json; + json[0] = "testing 0"; + json[1] = "testing 1"; + json[2] = "testing 2"; + json = std::move(json[1]); + UNIT_ASSERT_VALUES_EQUAL(json.GetString(), "testing 1"); + + const char* longTestString = + "Testing TJsonValue& operator=(TJsonValue&&) subpart self moving " "after TJsonValue was constrcuted from TString&&."; - + json["hello"] = TString{longTestString}; - json = std::move(json["hello"]); - UNIT_ASSERT_VALUES_EQUAL(json.GetString(), longTestString); - } + json = std::move(json["hello"]); + UNIT_ASSERT_VALUES_EQUAL(json.GetString(), longTestString); + } Y_UNIT_TEST(TJsonArrayMapConstructor) { TJsonMap emptyMap; |