Fix tests.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2021-05-30 13:48:11 +02:00
parent d7ad180721
commit 82193d529c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 4 additions and 4 deletions

View File

@ -155,9 +155,9 @@ SCENARIO("Searching EPUB files works")
REQUIRE(matches.at(2).context.second
== R"(="start.xhtml" id="start")");
REQUIRE(matches.at(3).filepath == "metadata.opf");
REQUIRE(matches.at(3).context.first == R"(<item id="nav")");
REQUIRE(matches.at(3).context.first == R"(id="nav" )");
REQUIRE(matches.at(3).context.second
== R"(="nav.html" )"
== R"(="nav.xhtml" )"
R"(media-type="application/xhtml+xml")");
}
}

View File

@ -65,7 +65,7 @@ SCENARIO("Searching ZIP files works")
REQUIRE(matches.at(0).filepath == "test folder/😊");
REQUIRE(matches.at(0).text == "📗");
REQUIRE(matches.at(0).context.first == "📖\n\n📘");
REQUIRE(matches.at(0).context.second == "📙\n");
REQUIRE(matches.at(0).context.second == "📙");
}
}
@ -99,7 +99,7 @@ SCENARIO("Searching ZIP files works")
REQUIRE(matches.at(10).filepath == "test folder/😊");
REQUIRE(matches.at(10).text == "\n");
REQUIRE(matches.at(10).context.first == "📖");
REQUIRE(matches.at(10).context.second == "\n📘📗📙\n");
REQUIRE(matches.at(10).context.second == "\n📘📗📙");
REQUIRE(matches.at(12).filepath == "test folder/😊");
REQUIRE(matches.at(12).text == "\n");
REQUIRE(matches.at(12).context.first == "📘📗📙");