aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/writer/json_value_ut.cpp
diff options
context:
space:
mode:
authorantoshkka <antoshkka@yandex-team.ru>2022-02-10 16:50:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:14 +0300
commitecc19a1fc1e15d78a9279514cb11edd9e808d600 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/json/writer/json_value_ut.cpp
parent90277959ac43a22ec25e7b78b1a2b4f610530d51 (diff)
downloadydb-ecc19a1fc1e15d78a9279514cb11edd9e808d600.tar.gz
Restoring authorship annotation for <antoshkka@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/writer/json_value_ut.cpp')
-rw-r--r--library/cpp/json/writer/json_value_ut.cpp26
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 c41a227cc9..dc7f6affdf 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;