aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/ut/json_reader_ut.cpp
diff options
context:
space:
mode:
authorNikita Slyusarev <nslus@yandex-team.com>2022-02-10 16:46:53 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:53 +0300
commit469afdc4e2587bf62ecdd096b75a0baa444c4012 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/json/ut/json_reader_ut.cpp
parentcd77cecfc03a3eaf87816af28a33067c4f0cdb59 (diff)
downloadydb-469afdc4e2587bf62ecdd096b75a0baa444c4012.tar.gz
Restoring authorship annotation for Nikita Slyusarev <nslus@yandex-team.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/ut/json_reader_ut.cpp')
-rw-r--r--library/cpp/json/ut/json_reader_ut.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/json/ut/json_reader_ut.cpp b/library/cpp/json/ut/json_reader_ut.cpp
index 932793d9b5..cd31afa0b8 100644
--- a/library/cpp/json/ut/json_reader_ut.cpp
+++ b/library/cpp/json/ut/json_reader_ut.cpp
@@ -354,24 +354,24 @@ Y_UNIT_TEST_SUITE(TJsonReaderTest) {
UNIT_ASSERT_EQUAL(value["test"].GetDoubleRobust(), static_cast<double>(Max<ui64>()));
} // Max<ui64>()
} // TJsonDoubleTest
-
+
Y_UNIT_TEST(TJsonInvalidTest) {
- {
- // No exceptions mode.
- TStringStream in;
- in << "{ \"test\" : }";
- TJsonValue value;
- UNIT_ASSERT(!ReadJsonTree(&in, &value));
- }
-
- {
- // Exception throwing mode.
- TStringStream in;
- in << "{ \"test\" : }";
- TJsonValue value;
- UNIT_ASSERT_EXCEPTION(ReadJsonTree(&in, &value, true), TJsonException);
- }
- }
+ {
+ // No exceptions mode.
+ TStringStream in;
+ in << "{ \"test\" : }";
+ TJsonValue value;
+ UNIT_ASSERT(!ReadJsonTree(&in, &value));
+ }
+
+ {
+ // Exception throwing mode.
+ TStringStream in;
+ in << "{ \"test\" : }";
+ TJsonValue value;
+ UNIT_ASSERT_EXCEPTION(ReadJsonTree(&in, &value, true), TJsonException);
+ }
+ }
Y_UNIT_TEST(TJsonMemoryLeakTest) {
// after https://clubs.at.yandex-team.ru/stackoverflow/3691