[gnome-terminal] screen: Add a few more email regex unittests



commit 354b3fd3e891bc7d120f7e959b1721a8ada86694
Author: Egmont Koblinger <egmont gmail com>
Date:   Thu Apr 28 23:38:24 2016 +0200

    screen: Add a few more email regex unittests
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756038#c26

 src/terminal-regex.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-regex.c b/src/terminal-regex.c
index 6b8bdb9..b9d1370 100644
--- a/src/terminal-regex.c
+++ b/src/terminal-regex.c
@@ -296,6 +296,11 @@ main (int argc, char **argv)
   assert_match (REGEX_EMAIL, "Write to foo [1 2 3 4]",       "foo [1 2 3 4]");
   assert_match (REGEX_EMAIL, "Write to foo [1 2 3 456]",     NULL);
   assert_match (REGEX_EMAIL, "Write to foo [1::2345]",       "foo [1::2345]");
+  assert_match (REGEX_EMAIL, "Write to foo [dead::beef]",    "foo [dead::beef]");
+  assert_match (REGEX_EMAIL, "Write to foo 1 2 3 4",         NULL);
+  assert_match (REGEX_EMAIL, "Write to foo 1 2 3 456",       NULL);
+  assert_match (REGEX_EMAIL, "Write to foo 1::2345",         NULL);
+  assert_match (REGEX_EMAIL, "Write to foo dead::beef",      NULL);
   assert_match (REGEX_EMAIL, "<baz email=\"foo bar com\"/>", "foo bar com");
   assert_match (REGEX_EMAIL, "<baz email='foo bar com'/>",   "foo bar com");
   assert_match (REGEX_EMAIL, "<email>foo bar com</email>",   "foo bar com");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]