aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/empathy-parser-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/empathy-parser-test.c b/tests/empathy-parser-test.c
index 8e4c15a66..5713d967c 100644
--- a/tests/empathy-parser-test.c
+++ b/tests/empathy-parser-test.c
@@ -78,6 +78,10 @@ test_parsers (void)
":)http://foo.com", "[:)][http://foo.com]",
"a :) b http://foo.com c :( d www.test.com e", "a [:)] b [http://foo.com] c [:(] d [www.test.com] e",
+ /* '\r' should be stripped */
+ "badger\n\rmushroom", "badger\nmushroom",
+ "badger\r\nmushroom", "badger\nmushroom",
+
/* FIXME: Known issue: Brackets should be counted by the parser */
//"Foo www.bar.com/test(123)", "Foo [www.bar.com/test(123)]",
//"Foo (www.bar.com/test(123))", "Foo ([www.bar.com/test(123)])",