aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest/ut/main.cpp
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
commit2c6ec4e7012419466156d8eb2394a888cccaa800 (patch)
tree9e80d045a72a2eb2c74ea86becc855a1fa35dcf7 /library/cpp/testing/unittest/ut/main.cpp
parent1c8fad4dbdab65ce5d4d0740cd02f90c069b4f17 (diff)
downloadydb-2c6ec4e7012419466156d8eb2394a888cccaa800.tar.gz
Restoring authorship annotation for <bkuchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/ut/main.cpp')
-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 e303e21e30..9057504397 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)
{