aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/empathy-parser-test.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/empathy-parser-test.c b/tests/empathy-parser-test.c
index bbe7aad16..6c549f905 100644
--- a/tests/empathy-parser-test.c
+++ b/tests/empathy-parser-test.c
@@ -61,14 +61,21 @@ test_parsers (void)
"mailto:user@.com", "mailto:user@.com",
"user@.com", "user@.com",
- /* Links inside (), {}, [] or "" */
+ /* Links inside (), {}, [], <> or "" */
/* FIXME: How to test if the ending ] is matched or not? */
"Foo (www.foo.com)", "Foo ([www.foo.com])",
"Foo {www.foo.com}", "Foo {[www.foo.com]}",
"Foo [www.foo.com]", "Foo [[www.foo.com]]",
+ "Foo <www.foo.com>", "Foo <[www.foo.com]>",
"Foo \"www.foo.com\"", "Foo \"[www.foo.com]\"",
"Foo (www.foo.com/bar(123)baz)", "Foo ([www.foo.com/bar(123)baz])",
"<a href=\"http://foo.com\">bar</a>", "<a href=\"[http://foo.com]\">bar</a>",
+ /* FIXME; Known issue: With email addresses, any leading character is matched */
+ //"Foo (user@server.com)", "Foo ([user@server.com])",
+ //"Foo {user@server.com}", "Foo {[user@server.com]}",
+ //"Foo [user@server.com]", "Foo [[user@server.com]]",
+ //"Foo <user@server.com>", "Foo <[user@server.com]>",
+ "Foo \"user@server.com\"", "Foo \"[user@server.com]\"",
/* Basic smileys */
"a:)b", "a[:)]b",
@@ -79,7 +86,7 @@ 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",
- /* FIXME: Known issues. Brackets should be counted by the parser */
+ /* 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)])",
//"Foo www.bar.com/test{123}", "Foo [www.bar.com/test{123}]",