Fix unit tests.

This commit is contained in:
vng 2012-07-19 23:41:37 -07:00 committed by Alex Zolotarev
parent 8633009162
commit 1e098bc0a3
2 changed files with 3 additions and 2 deletions

View file

@ -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 ^", ());
}

View file

@ -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