diff options
author | Konstantin Shalnev <c.shalnev@corp.mail.ru> | 2015-10-14 16:10:36 +0300 |
---|---|---|
committer | Konstantin Shalnev <c.shalnev@corp.mail.ru> | 2015-10-14 16:10:36 +0300 |
commit | cf025d9107ff67979a1980d41ebdccc954fba8e6 (patch) | |
tree | 7b24f034401b6d8f2ebaf52540be9a1103990a63 /routing/routing_tests/turns_tts_text_tests.cpp | |
parent | 6c404d12b95ccc0d5c45453f28f56eae982070db (diff) | |
parent | d54a413afe6486715c3522305c0c2e6c1cabbba6 (diff) |
Merge pull request #230 from bykoianko/tts-unsupported-languages-by-app
Using English in TTS if sound.txt doesn't contain the current languag
Diffstat (limited to 'routing/routing_tests/turns_tts_text_tests.cpp')
-rw-r--r-- | routing/routing_tests/turns_tts_text_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routing/routing_tests/turns_tts_text_tests.cpp b/routing/routing_tests/turns_tts_text_tests.cpp index 184a96a4e4..24c952d1e4 100644 --- a/routing/routing_tests/turns_tts_text_tests.cpp +++ b/routing/routing_tests/turns_tts_text_tests.cpp @@ -119,13 +119,13 @@ UNIT_TEST(GetTtsTextTest) ::Settings::Metric); Notification const notifiation4(0, 0, true, TurnDirection::TurnLeft, ::Settings::Metric); - getTtsText.ForTestingSetLocaleWithJson(engShortJson); + getTtsText.ForTestingSetLocaleWithJson(engShortJson, "en"); TEST_EQUAL(getTtsText(notifiation1), "In 500 meters. Make a right turn.", ()); TEST_EQUAL(getTtsText(notifiation2), "In 300 meters. Make a left turn.", ()); TEST_EQUAL(getTtsText(notifiation3), "You have reached the destination.", ()); TEST_EQUAL(getTtsText(notifiation4), "Then. Make a left turn.", ()); - getTtsText.ForTestingSetLocaleWithJson(rusShortJson); + getTtsText.ForTestingSetLocaleWithJson(rusShortJson, "ru"); TEST_EQUAL(getTtsText(notifiation1), "Через 500 метров. Поворот направо.", ()); TEST_EQUAL(getTtsText(notifiation2), "Через 300 метров. Поворот налево.", ()); TEST_EQUAL(getTtsText(notifiation3), "Вы достигли конца маршрута.", ()); |