]> git.0d.be Git - empathy.git/commitdiff
Add unit tests for the multi-word searching
authorXavier Claessens <xclaesse@gmail.com>
Tue, 22 Jun 2010 11:04:05 +0000 (13:04 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Fri, 30 Jul 2010 11:11:40 +0000 (13:11 +0200)
tests/empathy-live-search-test.c

index 6263481a24ff6c0399027c887acaca6535e7d978..6401f255783db9c1eb87ae8e26ec0c94214a6aca 100644 (file)
@@ -35,6 +35,12 @@ test_live_search (void)
       { "élève", "ele", TRUE },
       { "Azais", "AzaÏs", TRUE },
 
+      /* Multi words */
+      { "Xavier Claessens", "Xav Cla", TRUE },
+      { "Xavier Claessens", "Cla Xav", TRUE },
+      { "Foo Bar Baz", "   b  ", TRUE },
+      { "Foo Bar Baz", "bar bazz", FALSE },
+
       { NULL, NULL, FALSE }
     };
   guint i;