Fix test for escape_some_html().
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7438f878c2
commit
a1850db226
@ -1,5 +1,5 @@
|
|||||||
/* This file is part of gitea2rss.
|
/* This file is part of gitea2rss.
|
||||||
* Copyright © 2019, 2020 tastytea <tastytea@tastytea.de>
|
* Copyright © 2019-2021 tastytea <tastytea@tastytea.de>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -15,7 +15,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "gitea2rss.hpp"
|
#include "gitea2rss.hpp"
|
||||||
|
|
||||||
#include <catch.hpp>
|
#include <catch.hpp>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
@ -30,7 +32,8 @@ SCENARIO("escape_some_html() works as expected", "[strings]")
|
|||||||
THEN("The HTML is escaped")
|
THEN("The HTML is escaped")
|
||||||
{
|
{
|
||||||
REQUIRE(escaped
|
REQUIRE(escaped
|
||||||
== "<p><small>.</small></p>");
|
== "<p><small>.</"
|
||||||
|
"small></p>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user