aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-08 23:14:22 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-08 23:43:59 +0800
commit03c709802eebcacdabe2c2738e166da9f4cb1f31 (patch)
tree607a55c71713c24ead95981886e9d2ce55df5916 /tests
parent8b8e9567d5a5d44bbb565013e1b7856f21ab1c5f (diff)
downloadgsoc2013-empathy-03c709802eebcacdabe2c2738e166da9f4cb1f31.tar
gsoc2013-empathy-03c709802eebcacdabe2c2738e166da9f4cb1f31.tar.gz
gsoc2013-empathy-03c709802eebcacdabe2c2738e166da9f4cb1f31.tar.bz2
gsoc2013-empathy-03c709802eebcacdabe2c2738e166da9f4cb1f31.tar.lz
gsoc2013-empathy-03c709802eebcacdabe2c2738e166da9f4cb1f31.tar.xz
gsoc2013-empathy-03c709802eebcacdabe2c2738e166da9f4cb1f31.tar.zst
gsoc2013-empathy-03c709802eebcacdabe2c2738e166da9f4cb1f31.zip
empathy_string_replace_escaped: remove '\r' (#620903)
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)])",