aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest/ut
diff options
context:
space:
mode:
authorbkuchin <bkuchin@yandex-team.ru>2022-02-10 16:46:29 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:29 +0300
commitf43ab775d197d300eb67bd4497632b909cd7c2a5 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/testing/unittest/ut
parent2c6ec4e7012419466156d8eb2394a888cccaa800 (diff)
downloadydb-f43ab775d197d300eb67bd4497632b909cd7c2a5.tar.gz
Restoring authorship annotation for <bkuchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/ut')
-rw-r--r--library/cpp/testing/unittest/ut/main.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/testing/unittest/ut/main.cpp b/library/cpp/testing/unittest/ut/main.cpp
index 9057504397..e303e21e30 100644
--- a/library/cpp/testing/unittest/ut/main.cpp
+++ b/library/cpp/testing/unittest/ut/main.cpp
@@ -28,14 +28,14 @@ namespace {
int I;
};
-
- struct TSimpleFixture : public NUnitTest::TBaseFixture {
- size_t Value = 24;
- };
-
- struct TOtherFixture : public NUnitTest::TBaseFixture {
- size_t TheAnswer = 42;
- };
+
+ struct TSimpleFixture : public NUnitTest::TBaseFixture {
+ size_t Value = 24;
+ };
+
+ struct TOtherFixture : public NUnitTest::TBaseFixture {
+ size_t TheAnswer = 42;
+ };
struct TSetUpTearDownFixture : public NUnitTest::TBaseFixture {
int Magic = 3;
@@ -62,27 +62,27 @@ TEST(ETest, Test1) {
}
Y_UNIT_TEST_SUITE(TestSingleTestFixture)
-{
+{
Y_UNIT_TEST_F(Test3, TSimpleFixture) {
- UNIT_ASSERT_EQUAL(Value, 24);
- }
-}
-
+ UNIT_ASSERT_EQUAL(Value, 24);
+ }
+}
+
Y_UNIT_TEST_SUITE_F(TestSuiteFixture, TSimpleFixture)
-{
+{
Y_UNIT_TEST(Test1) {
- UNIT_ASSERT(Value == 24);
- Value = 25;
- }
-
+ UNIT_ASSERT(Value == 24);
+ Value = 25;
+ }
+
Y_UNIT_TEST(Test2) {
- UNIT_ASSERT_EQUAL(Value, 24);
- }
-
+ UNIT_ASSERT_EQUAL(Value, 24);
+ }
+
Y_UNIT_TEST_F(Test3, TOtherFixture) {
- UNIT_ASSERT_EQUAL(TheAnswer, 42);
- }
-}
+ UNIT_ASSERT_EQUAL(TheAnswer, 42);
+ }
+}
Y_UNIT_TEST_SUITE(TestSetUpTearDownFixture)
{