Remove duplicate "art_url"

This commit is contained in:
badaix 2021-06-11 18:45:59 +02:00
parent 017ab24c0b
commit fe6e67c18e
2 changed files with 13 additions and 3 deletions

View file

@ -214,4 +214,17 @@ TEST_CASE("Librespot")
REQUIRE(m[2] == "310573");
}
REQUIRE(m.size() == 3);
static regex re_log_line(R"(\[(\S+)(\s+)(\bTRACE\b|\bDEBUG\b|\bINFO\b|\bWARN\b|\bERROR\b)(\s+)(.*)\] (.*))");
// Parse the patched version
REQUIRE(std::regex_search(line, m, re_log_line));
REQUIRE(m.size() == 7);
REQUIRE(m[1] == "2021-06-04T07:20:47Z");
REQUIRE(m[2] == " ");
REQUIRE(m[3] == "INFO");
REQUIRE(m[4] == " ");
REQUIRE(m[5] == "librespot_playback::player");
REQUIRE(m[6] == "<Tunnel> (310573 ms) loaded");
for (const auto& match: m)
std::cerr << "Match: '" << match << "'\n";
}