mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 14:13:45 +00:00
Fixed getting url bug.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
2f2c3b042f
commit
c2c68c4a76
@@ -113,8 +113,10 @@ public:
|
||||
StringUtf8Multilang str;
|
||||
std::string const badUrl = "https://en.wikipedia.org/wiki/Not_exists";
|
||||
auto const path = DescriptionsCollector::MakePathForWikipedia(m_wikiDir, badUrl);
|
||||
|
||||
descriptions::LangMeta meta;
|
||||
TEST_EQUAL(collector.FindPageAndFill(path, meta), -1, ());
|
||||
TEST_EQUAL(collector.FindPageAndFill(path, meta), 0, ());
|
||||
TEST(meta.empty(), ());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user