aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysaveload_ut.cpp
diff options
context:
space:
mode:
authorsay <say@yandex-team.ru>2022-02-10 16:48:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:19 +0300
commita6a6f6e1e77c7d7d0cdfad61c093e061d6fb5782 (patch)
tree4ba72c2b9370316395657a82e1952eebbe587ade /util/ysaveload_ut.cpp
parent24e42061bd52ed0f06dff42f3db89414ba1d186e (diff)
downloadydb-a6a6f6e1e77c7d7d0cdfad61c093e061d6fb5782.tar.gz
Restoring authorship annotation for <say@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/ysaveload_ut.cpp')
-rw-r--r--util/ysaveload_ut.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/util/ysaveload_ut.cpp b/util/ysaveload_ut.cpp
index 723c68f391..7cffde04f1 100644
--- a/util/ysaveload_ut.cpp
+++ b/util/ysaveload_ut.cpp
@@ -27,7 +27,7 @@ class TSaveLoadTest: public TTestBase {
UNIT_TEST(TestNewStyle)
UNIT_TEST(TestNewNewStyle)
UNIT_TEST(TestList)
- UNIT_TEST(TestTuple)
+ UNIT_TEST(TestTuple)
UNIT_TEST(TestVariant)
UNIT_TEST(TestInheritNonVirtualClass)
UNIT_TEST(TestInheritVirtualClass)
@@ -390,22 +390,22 @@ private:
UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 1), 1);
UNIT_ASSERT_VALUES_EQUAL(*std::next(list.begin(), 2), 10);
}
-
- void TestTuple() {
- TBufferStream s;
-
- using TTuple = std::tuple<int, TString, unsigned int>;
- const TTuple toSave{-10, "qwerty", 15};
- Save(&s, toSave);
-
- TTuple toLoad;
- Load(&s, toLoad);
-
- UNIT_ASSERT_VALUES_EQUAL(std::get<0>(toLoad), std::get<0>(toSave));
- UNIT_ASSERT_VALUES_EQUAL(std::get<1>(toLoad), std::get<1>(toSave));
- UNIT_ASSERT_VALUES_EQUAL(std::get<2>(toLoad), std::get<2>(toSave));
- }
-
+
+ void TestTuple() {
+ TBufferStream s;
+
+ using TTuple = std::tuple<int, TString, unsigned int>;
+ const TTuple toSave{-10, "qwerty", 15};
+ Save(&s, toSave);
+
+ TTuple toLoad;
+ Load(&s, toLoad);
+
+ UNIT_ASSERT_VALUES_EQUAL(std::get<0>(toLoad), std::get<0>(toSave));
+ UNIT_ASSERT_VALUES_EQUAL(std::get<1>(toLoad), std::get<1>(toSave));
+ UNIT_ASSERT_VALUES_EQUAL(std::get<2>(toLoad), std::get<2>(toSave));
+ }
+
template <class TVariant, class T>
void TestVariantImpl(TVariant& v, const T& expected) {
v = expected;