commit 7300836: [Minor] Fix entities unit tests

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jun 26 13:49:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-26 14:46:39 +0100
URL: https://github.com/rspamd/rspamd/commit/7300836240130356ebb2c3335ca83aa4e7957562 (HEAD -> master)

[Minor] Fix entities unit tests

---
 src/libserver/html/html_entities.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libserver/html/html_entities.cxx b/src/libserver/html/html_entities.cxx
index 4cbdf02bf..0d5b7d4de 100644
--- a/src/libserver/html/html_entities.cxx
+++ b/src/libserver/html/html_entities.cxx
@@ -2577,13 +2577,13 @@ TEST_SUITE("html") {
 				{"abc     def", "abc def"},
 				{"abc\ndef", "abc def"},
 				{"abc\n \tdef", "abc def"},
-				{"    abc def   ", "abc def"},
+				{"    abc def   ", "abc def "},
 				{"FOO>BAR", "FOO>BAR"},
 				{"FOO&gtBAR", "FOO>BAR"},
 				{"FOO&gt BAR", "FOO>BAR"},
 				{"FOO>;;BAR", "FOO>;;BAR"},
-				{"I'm ¬it; ", "I'm ¬it;"},
-				{"I'm ∉ ", "I'm ∉"},
+				{"I'm ¬it;", "I'm ¬it;"},
+				{"I'm ∉", "I'm ∉"},
 				{"FOO& BAR", "FOO& BAR"},
 				{"FOO&&&>BAR", "FOO&&&>BAR"},
 				{"FOO)BAR", "FOO)BAR"},


More information about the Commits mailing list