aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/ut
diff options
context:
space:
mode:
authorxpahos <xpahos@yandex-team.ru>2022-02-10 16:47:21 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:21 +0300
commitda8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/json/ut
parent52faf709473af8421da1e2ea84ae1879b16665b8 (diff)
downloadydb-da8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e.tar.gz
Restoring authorship annotation for <xpahos@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/ut')
-rw-r--r--library/cpp/json/ut/json_reader_ut.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/library/cpp/json/ut/json_reader_ut.cpp b/library/cpp/json/ut/json_reader_ut.cpp
index f112e111e2..cd31afa0b8 100644
--- a/library/cpp/json/ut/json_reader_ut.cpp
+++ b/library/cpp/json/ut/json_reader_ut.cpp
@@ -96,29 +96,29 @@ Y_UNIT_TEST_SUITE(TJsonReaderTest) {
UNIT_ASSERT_VALUES_EQUAL(result1, result2);
}
- Y_UNIT_TEST(TJsonEscapedApostrophe) {
- TString jsonString = "{ \"foo\" : \"bar\\'buzz\" }";
- {
- TStringStream in;
- in << jsonString;
- TStringStream out;
- TJsonWriter writer(&out, false);
- TReformatCallbacks cb(writer);
- UNIT_ASSERT(!ReadJson(&in, &cb));
- }
-
- {
- TStringStream in;
- in << jsonString;
- TStringStream out;
- TJsonWriter writer(&out, false);
- TReformatCallbacks cb(writer);
- UNIT_ASSERT(ReadJson(&in, false, true, &cb));
- writer.Flush();
- UNIT_ASSERT_EQUAL(out.Str(), "[\"foo\",\"bar'buzz\"]");
- }
- }
-
+ Y_UNIT_TEST(TJsonEscapedApostrophe) {
+ TString jsonString = "{ \"foo\" : \"bar\\'buzz\" }";
+ {
+ TStringStream in;
+ in << jsonString;
+ TStringStream out;
+ TJsonWriter writer(&out, false);
+ TReformatCallbacks cb(writer);
+ UNIT_ASSERT(!ReadJson(&in, &cb));
+ }
+
+ {
+ TStringStream in;
+ in << jsonString;
+ TStringStream out;
+ TJsonWriter writer(&out, false);
+ TReformatCallbacks cb(writer);
+ UNIT_ASSERT(ReadJson(&in, false, true, &cb));
+ writer.Flush();
+ UNIT_ASSERT_EQUAL(out.Str(), "[\"foo\",\"bar'buzz\"]");
+ }
+ }
+
Y_UNIT_TEST(TJsonTreeTest) {
TString data = "{\"intkey\": 10, \"double key\": 11.11, \"null value\":null, \"string key\": \"string\", \"array\": [1,2,3,\"TString\"], \"bool key\": true}";
TStringStream in;