mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[tests] fix url prefix in mwm_url_tests.cpp
Signed-off-by: Wojciech Sipak <wsipak@protonmail.com>
This commit is contained in:
@@ -284,11 +284,11 @@ UNIT_TEST(MapApiGe0)
|
||||
TEST_EQUAL(p0.m_name, "Zoo Zürich", ());
|
||||
}
|
||||
{
|
||||
ParsedMapApi api("http://comaps.app/o4B4pYZsRs/Zoo_Zürich");
|
||||
ParsedMapApi api("http://comaps.at/o4B4pYZsRs/Zoo_Zürich");
|
||||
TEST_EQUAL(api.GetRequestType(), UrlType::Map, ());
|
||||
}
|
||||
{
|
||||
ParsedMapApi api("https://comaps.app/o4B4pYZsRs/Zoo_Zürich");
|
||||
ParsedMapApi api("https://comaps.at/o4B4pYZsRs/Zoo_Zürich");
|
||||
TEST_EQUAL(api.GetRequestType(), UrlType::Map, ());
|
||||
}
|
||||
{
|
||||
@@ -386,7 +386,7 @@ UNIT_TEST(CrosshairApi)
|
||||
TEST_EQUAL(api.GetAppName(), "Google Maps", ());
|
||||
}
|
||||
{
|
||||
ParsedMapApi api("https://comaps.app/crosshair?cll=47.3813,8.5889&appname=Google%20Maps");
|
||||
ParsedMapApi api("https://comaps.at/crosshair?cll=47.3813,8.5889&appname=Google%20Maps");
|
||||
TEST_EQUAL(api.GetRequestType(), UrlType::Crosshair, ());
|
||||
ms::LatLon latlon = api.GetCenterLatLon();
|
||||
TEST_ALMOST_EQUAL_ABS(latlon.m_lat, 47.3813, kEps, ());
|
||||
|
||||
Reference in New Issue
Block a user