From 1e098bc0a3c7ce08879ee447943412ff9c9a919b Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 19 Jul 2012 23:41:37 -0700 Subject: [PATCH] Fix unit tests. --- base/base_tests/string_format_test.cpp | 4 ++-- indexer/indexer_tests/mwm_set_test.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/base/base_tests/string_format_test.cpp b/base/base_tests/string_format_test.cpp index 0849838e65..0fcd9f730a 100644 --- a/base/base_tests/string_format_test.cpp +++ b/base/base_tests/string_format_test.cpp @@ -3,9 +3,9 @@ UNIT_TEST(StringFormat_Smoke) { - TEST_EQUAL(strings::Format("this is % % % %", "a", "very", "simple", "test"), "this is a very simple test", ()); + TEST_EQUAL(strings::Format("this is ^ ^ ^ ^", "a", "very", "simple", "test"), "this is a very simple test", ()); TEST_EQUAL(strings::Format("this", "a"), "this", ()); - TEST_EQUAL(strings::Format("this % %", "is"), "this is %", ()); + TEST_EQUAL(strings::Format("this ^ ^", "is"), "this is ^", ()); } diff --git a/indexer/indexer_tests/mwm_set_test.cpp b/indexer/indexer_tests/mwm_set_test.cpp index 2f839ac3ab..c630952b1c 100644 --- a/indexer/indexer_tests/mwm_set_test.cpp +++ b/indexer/indexer_tests/mwm_set_test.cpp @@ -15,6 +15,7 @@ namespace { int n = path[0] - '0'; info.m_maxScale = n; + info.m_limitRect = m2::RectD(0, 0, 1, 1); return 1; } virtual MwmValue * CreateValue(string const &) const