aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-11-25 01:38:38 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-11-25 01:46:55 +0800
commitb253440c84091dd88e619171330e895507abe40d (patch)
tree097dca7c48fb5630731ba6a7f581a7d2166c3f7e /tests
parent9863c689d9dab2772bb6ffda97d7376702142394 (diff)
downloadgsoc2013-empathy-b253440c84091dd88e619171330e895507abe40d.tar
gsoc2013-empathy-b253440c84091dd88e619171330e895507abe40d.tar.gz
gsoc2013-empathy-b253440c84091dd88e619171330e895507abe40d.tar.bz2
gsoc2013-empathy-b253440c84091dd88e619171330e895507abe40d.tar.lz
gsoc2013-empathy-b253440c84091dd88e619171330e895507abe40d.tar.xz
gsoc2013-empathy-b253440c84091dd88e619171330e895507abe40d.tar.zst
gsoc2013-empathy-b253440c84091dd88e619171330e895507abe40d.zip
Add test for bug #597049
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}]",