diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-06-02 16:20:29 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-06-06 12:40:12 +0300 |
commit | 5eae2c57bcbfc1ebe0cd4ed1333094d21927317e (patch) | |
tree | 204fa1d0c97058b6998d3f22bf0762e8b269e3a2 /editor/editor_tests | |
parent | b3d3b3fa406a42676231e06f182c1167af9cc561 (diff) |
[tests] Fix user stats and building level validation tests
Diffstat (limited to 'editor/editor_tests')
-rw-r--r-- | editor/editor_tests/user_stats_test.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/editor_tests/user_stats_test.cpp b/editor/editor_tests/user_stats_test.cpp index e21e4d724d..0d7f994c85 100644 --- a/editor/editor_tests/user_stats_test.cpp +++ b/editor/editor_tests/user_stats_test.cpp @@ -9,7 +9,8 @@ namespace editor namespace { auto constexpr kEditorTestDir = "editor-tests"; -auto constexpr kUserName = "Vladimir BI"; // TODO(mgsergio, Zverik): Make a test user account. +// This user has made only 9 changes and then renamed himself, so there will be no further edits from him. +auto constexpr kUserName = "Nikita Bokiy"; UNIT_TEST(UserStatsLoader_Smoke) { @@ -21,7 +22,6 @@ UNIT_TEST(UserStatsLoader_Smoke) } { - // This user made only two changes and the possibility of further changes is very low. UserStatsLoader statsLoader; statsLoader.Update(kUserName); @@ -31,6 +31,8 @@ UNIT_TEST(UserStatsLoader_Smoke) int32_t rank, changesCount; TEST(userStats.GetRank(rank), ()); TEST(userStats.GetChangesCount(changesCount), ()); + TEST_GREATER_OR_EQUAL(rank, 2100, ()); + TEST_EQUAL(changesCount, 9, ()); } // This test checks if user stats info was stored in setting. @@ -45,6 +47,8 @@ UNIT_TEST(UserStatsLoader_Smoke) int32_t rank, changesCount; TEST(userStats.GetRank(rank), ()); TEST(userStats.GetChangesCount(changesCount), ()); + TEST_GREATER_OR_EQUAL(rank, 2100, ()); + TEST_EQUAL(changesCount, 9, ()); } } } // namespace |