aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/sliding_window/sliding_window_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/sliding_window/sliding_window_ut.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/sliding_window/sliding_window_ut.cpp')
-rw-r--r--library/cpp/sliding_window/sliding_window_ut.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/sliding_window/sliding_window_ut.cpp b/library/cpp/sliding_window/sliding_window_ut.cpp
index 1e7343a8d3..bcba7d71de 100644
--- a/library/cpp/sliding_window/sliding_window_ut.cpp
+++ b/library/cpp/sliding_window/sliding_window_ut.cpp
@@ -7,7 +7,7 @@ using namespace NSlidingWindow;
Y_UNIT_TEST_SUITE(TSlidingWindowTest) {
Y_UNIT_TEST(TestSlidingWindowMax) {
TSlidingWindow<TMaxOperation<unsigned>> w(TDuration::Minutes(5), 5);
- TInstant start = TInstant::MicroSeconds(TDuration::Hours(1).MicroSeconds());
+ TInstant start = TInstant::MicroSeconds(TDuration::Hours(1).MicroSeconds());
TInstant now = start;
w.Update(5, start); // ~ ~ ~ ~ 5
UNIT_ASSERT_VALUES_EQUAL(w.GetValue(), 5); // ^
@@ -48,7 +48,7 @@ Y_UNIT_TEST_SUITE(TSlidingWindowTest) {
Y_UNIT_TEST(TestSlidingWindowMin) {
TSlidingWindow<TMinOperation<unsigned>> w(TDuration::Minutes(5), 5);
- TInstant start = TInstant::MicroSeconds(TDuration::Hours(1).MicroSeconds());
+ TInstant start = TInstant::MicroSeconds(TDuration::Hours(1).MicroSeconds());
TInstant now = start;
w.Update(5, start); // ~ ~ ~ ~ 5
UNIT_ASSERT_VALUES_EQUAL(w.GetValue(), 5); // ^
@@ -91,7 +91,7 @@ Y_UNIT_TEST_SUITE(TSlidingWindowTest) {
TSlidingWindow<TSumOperation<unsigned>> w(TDuration::Minutes(5), 5);
UNIT_ASSERT_VALUES_EQUAL(w.GetValue(), 0); // current sum
- TInstant start = TInstant::MicroSeconds(TDuration::Hours(1).MicroSeconds());
+ TInstant start = TInstant::MicroSeconds(TDuration::Hours(1).MicroSeconds());
TInstant now = start;
w.Update(5, start); // 0 0 0 0 5
UNIT_ASSERT_VALUES_EQUAL(w.GetValue(), 5); // ^