diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-04-05 12:01:54 +0300 |
---|---|---|
committer | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-04-05 12:01:54 +0300 |
commit | 39f774fd5d1079c7e683fce36c18d4c7a14a7022 (patch) | |
tree | 52abd8a01900c84963cfe21b55a33d1920e13d73 /editor | |
parent | 825c0716c8ba3f2547f8a0c6a7332506ce670e14 (diff) |
Fix opening hours ui test.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_tests/opening_hours_ui_test.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/editor/editor_tests/opening_hours_ui_test.cpp b/editor/editor_tests/opening_hours_ui_test.cpp index ec4750e06d..7e60af8ab4 100644 --- a/editor/editor_tests/opening_hours_ui_test.cpp +++ b/editor/editor_tests/opening_hours_ui_test.cpp @@ -186,11 +186,14 @@ UNIT_TEST(TestAppendTimeTable) TEST(!tts.Append(tts.GetComplementTimeTable()), ()); TEST_EQUAL(tts.Size(), 3, ()); - TEST(!tts.Remove(0), ()); + TEST(tts.Remove(0), ()); TEST(tts.Remove(1), ()); - TEST_EQUAL(tts.Size(), 2, ()); - TEST_EQUAL(tts.GetUnhandledDays(), (set<osmoh::Weekday>{osmoh::Weekday::Sunday, - osmoh::Weekday::Saturday}), ()); + TEST_EQUAL(tts.Size(), 1, ()); + TEST_EQUAL(tts.GetUnhandledDays(), (set<osmoh::Weekday>{osmoh::Weekday::Monday, + osmoh::Weekday::Tuesday, + osmoh::Weekday::Wednesday, + osmoh::Weekday::Thursday, + osmoh::Weekday::Friday}), ()); } { TimeTableSet tts; |