mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-11 23:31:42 +02:00
Remove duplicate "art_url"
This commit is contained in:
parent
017ab24c0b
commit
fe6e67c18e
2 changed files with 13 additions and 3 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue