aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/date_ut.cpp
diff options
context:
space:
mode:
authornkmakarov <nkmakarov@yandex-team.ru>2022-02-10 16:49:06 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:06 +0300
commit324348a37ed08cf66897faefb0ec4bebfe7804e1 (patch)
tree8736a3afd6953763bf57544746bf1b8b5404dec6 /util/draft/date_ut.cpp
parent5eddcf9f19515e4be1e49ba1482d920e007a07d1 (diff)
downloadydb-324348a37ed08cf66897faefb0ec4bebfe7804e1.tar.gz
Restoring authorship annotation for <nkmakarov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/draft/date_ut.cpp')
-rw-r--r--util/draft/date_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/draft/date_ut.cpp b/util/draft/date_ut.cpp
index 8c33a6c1cf..223fa4e41c 100644
--- a/util/draft/date_ut.cpp
+++ b/util/draft/date_ut.cpp
@@ -24,13 +24,13 @@ Y_UNIT_TEST_SUITE(TDateTest) {
UNIT_ASSERT_EQUAL(d.ToStroka("____%Y__%m____%d"), "____2005__06____03");
UNIT_ASSERT_EQUAL(d.GetStartUTC(), 1117756800);
}
- {
- TDate d("2011-02-15", "%Y-%m-%d");
- UNIT_ASSERT_EQUAL(d.GetYear(), 2011);
- UNIT_ASSERT_EQUAL(d.GetMonth(), 2);
- UNIT_ASSERT_EQUAL(d.GetMonthDay(), 15);
- UNIT_ASSERT_EQUAL(d.ToStroka("%Y%m%d"), "20110215");
+ {
+ TDate d("2011-02-15", "%Y-%m-%d");
+ UNIT_ASSERT_EQUAL(d.GetYear(), 2011);
+ UNIT_ASSERT_EQUAL(d.GetMonth(), 2);
+ UNIT_ASSERT_EQUAL(d.GetMonthDay(), 15);
+ UNIT_ASSERT_EQUAL(d.ToStroka("%Y%m%d"), "20110215");
UNIT_ASSERT_EQUAL(d.GetStartUTC(), 1297728000);
- }
+ }
}
}