Fix test for escape_some_html().
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2021-04-21 12:49:32 +02:00
parent 7438f878c2
commit a1850db226
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* 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
* it under the terms of the GNU General Public License as published by
@ -15,7 +15,9 @@
*/
#include "gitea2rss.hpp"
#include <catch.hpp>
#include <string>
using std::string;
@ -30,7 +32,8 @@ SCENARIO("escape_some_html() works as expected", "[strings]")
THEN("The HTML is escaped")
{
REQUIRE(escaped
== "&lt;p&gt;&lt;small&gt;.&lt;/small&gt;&lt;/p&gt;");
== "&#x3C;p&#x3E;&#x3C;small&#x3E;.&#x3C;/"
"small&#x3E;&#x3C;/p&#x3E;");
}
}
}