aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/scheme/tests/ut/scheme_cast_ut.cpp')
-rw-r--r--library/cpp/scheme/tests/ut/scheme_cast_ut.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp b/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
index 4f907157e9..7f9101eff4 100644
--- a/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
+++ b/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
@@ -9,11 +9,11 @@
using namespace NJsonConverters;
-using TVI = TVector<int>;
-using THI = THashMap<int, int>;
-using TMI = TMap<int, int>;
-using THSI = THashSet<int>;
-using TSI = TSet<int>;
+using TVI = TVector<int>;
+using THI = THashMap<int, int>;
+using TMI = TMap<int, int>;
+using THSI = THashSet<int>;
+using TSI = TSet<int>;
using TPI = std::pair<int, int>;
Y_UNIT_TEST_SUITE(TSchemeCastTest) {
@@ -34,7 +34,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
for (int i = 0; i < 3; ++i)
h[i] = i * i;
- const TString etalon = "{\"0\":0,\"1\":1,\"2\":4}";
+ const TString etalon = "{\"0\":0,\"1\":1,\"2\":4}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
THI h2(FromJson<THI>(ToJson(h)));
@@ -46,7 +46,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
for (int i = 0; i < 3; ++i)
h[i] = i * i;
- const TString etalon = "{\"0\":0,\"1\":1,\"2\":4}";
+ const TString etalon = "{\"0\":0,\"1\":1,\"2\":4}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
TMI h2(FromJson<TMI>(ToJson(h)));
@@ -58,7 +58,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
for (int i = 0; i < 3; ++i)
h.insert(i * i);
- const TString etalon = "{\"0\":null,\"1\":null,\"4\":null}";
+ const TString etalon = "{\"0\":null,\"1\":null,\"4\":null}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
THSI h2(FromJson<THSI>(ToJson(h)));
@@ -70,7 +70,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
for (int i = 0; i < 3; ++i)
h.insert(i * i);
- const TString etalon = "{\"0\":null,\"1\":null,\"4\":null}";
+ const TString etalon = "{\"0\":null,\"1\":null,\"4\":null}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
TSI h2(FromJson<TSI>(ToJson(h)));
@@ -80,7 +80,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
Y_UNIT_TEST(TestTPair) {
TPI p(1, 1);
- const TString etalon = "[1,1]";
+ const TString etalon = "[1,1]";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(p, true));
TPI p2(FromJson<TPI>(ToJson(p)));
@@ -116,7 +116,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
Y_UNIT_TEST(TestTCustom) {
TCustom x(2, 3);
- const TString etalon = "{\"a\":2,\"b\":3}";
+ const TString etalon = "{\"a\":2,\"b\":3}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(x, true));
TCustom x2(FromJson<TCustom>(ToJson(x)));
@@ -124,13 +124,13 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
}
Y_UNIT_TEST(TestVectorOfPairs) {
- typedef TVector<TPI> TVPI;
+ typedef TVector<TPI> TVPI;
TVPI v;
for (int i = 0; i < 3; ++i)
v.push_back(TPI(i, i * i));
- const TString etalon = "[[0,0],[1,1],[2,4]]";
+ const TString etalon = "[[0,0],[1,1],[2,4]]";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(v, true));
TVPI v2(FromJson<TVPI>(ToJson(v)));
@@ -138,11 +138,11 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
}
Y_UNIT_TEST(TestSetOfCustom) {
- typedef TSet<TCustom> TSC;
+ typedef TSet<TCustom> TSC;
TSC s;
s.insert(TCustom(2, 3));
- const TString etalon = "{\"{\\\"a\\\":2,\\\"b\\\":3}\":null}";
+ const TString etalon = "{\"{\\\"a\\\":2,\\\"b\\\":3}\":null}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(s, true));
TSC s2(FromJson<TSC>(ToJson(s)));
@@ -151,7 +151,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
Y_UNIT_TEST(TestExceptions) {
NSc::TValue v = 1;
- const TString json = v.ToJson();
+ const TString json = v.ToJson();
UNIT_ASSERT_EXCEPTION(FromJson<TVI>(json, true), yexception);
UNIT_ASSERT_EXCEPTION(FromJson<THI>(json, true), yexception);
UNIT_ASSERT_EXCEPTION(FromJson<TMI>(json, true), yexception);