summaryrefslogtreecommitdiffstats
path: root/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. 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.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp b/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
index 4f907157e92..a57b77e5667 100644
--- a/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
+++ b/library/cpp/scheme/tests/ut/scheme_cast_ut.cpp
@@ -26,13 +26,13 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
TVI y(FromJson<TVI>(ToJson(v)));
UNIT_ASSERT_VALUES_EQUAL(v.size(), y.size());
- UNIT_ASSERT(std::equal(v.begin(), v.end(), y.begin()));
+ UNIT_ASSERT(std::equal(v.begin(), v.end(), y.begin()));
}
Y_UNIT_TEST(TestYHash) {
THI h;
for (int i = 0; i < 3; ++i)
- h[i] = i * i;
+ h[i] = i * i;
const TString etalon = "{\"0\":0,\"1\":1,\"2\":4}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
@@ -44,7 +44,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
Y_UNIT_TEST(TestYMap) {
TMI h;
for (int i = 0; i < 3; ++i)
- h[i] = i * i;
+ h[i] = i * i;
const TString etalon = "{\"0\":0,\"1\":1,\"2\":4}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
@@ -56,7 +56,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
Y_UNIT_TEST(TestYHashSet) {
THSI h;
for (int i = 0; i < 3; ++i)
- h.insert(i * i);
+ h.insert(i * i);
const TString etalon = "{\"0\":null,\"1\":null,\"4\":null}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
@@ -68,7 +68,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
Y_UNIT_TEST(TestYSet) {
TSI h;
for (int i = 0; i < 3; ++i)
- h.insert(i * i);
+ h.insert(i * i);
const TString etalon = "{\"0\":null,\"1\":null,\"4\":null}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(h, true));
@@ -78,7 +78,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
}
Y_UNIT_TEST(TestTPair) {
- TPI p(1, 1);
+ TPI p(1, 1);
const TString etalon = "[1,1]";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(p, true));
@@ -89,14 +89,14 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
struct TCustom: public IJsonSerializable {
int A, B;
- TCustom()
- : A(0)
- , B(0){};
- TCustom(int a, int b)
- : A(a)
- , B(b)
- {
- }
+ TCustom()
+ : A(0)
+ , B(0){};
+ TCustom(int a, int b)
+ : A(a)
+ , B(b)
+ {
+ }
NSc::TValue ToTValue() const override {
NSc::TValue res;
res["a"] = A;
@@ -108,7 +108,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
B = v["b"].GetNumber();
}
- bool operator<(const TCustom& rhs) const {
+ bool operator<(const TCustom& rhs) const {
return A < rhs.A;
}
};
@@ -128,7 +128,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
TVPI v;
for (int i = 0; i < 3; ++i)
- v.push_back(TPI(i, i * i));
+ v.push_back(TPI(i, i * i));
const TString etalon = "[[0,0],[1,1],[2,4]]";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(v, true));
@@ -140,7 +140,7 @@ Y_UNIT_TEST_SUITE(TSchemeCastTest) {
Y_UNIT_TEST(TestSetOfCustom) {
typedef TSet<TCustom> TSC;
TSC s;
- s.insert(TCustom(2, 3));
+ s.insert(TCustom(2, 3));
const TString etalon = "{\"{\\\"a\\\":2,\\\"b\\\":3}\":null}";
UNIT_ASSERT_VALUES_EQUAL(etalon, ToJson(s, true));