aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-06-22 19:04:05 +0800
committerXavier Claessens <xclaesse@gmail.com>2010-07-30 19:11:40 +0800
commit9ab5da340ffe6f13afc5b3e32682635980b96ad5 (patch)
tree250419cc935087af8315af9cf0a1833592835882 /tests
parent0cdeb7e2b28f91b84cefb15d72eaa21af8a5be99 (diff)
downloadgsoc2013-empathy-9ab5da340ffe6f13afc5b3e32682635980b96ad5.tar
gsoc2013-empathy-9ab5da340ffe6f13afc5b3e32682635980b96ad5.tar.gz
gsoc2013-empathy-9ab5da340ffe6f13afc5b3e32682635980b96ad5.tar.bz2
gsoc2013-empathy-9ab5da340ffe6f13afc5b3e32682635980b96ad5.tar.lz
gsoc2013-empathy-9ab5da340ffe6f13afc5b3e32682635980b96ad5.tar.xz
gsoc2013-empathy-9ab5da340ffe6f13afc5b3e32682635980b96ad5.tar.zst
gsoc2013-empathy-9ab5da340ffe6f13afc5b3e32682635980b96ad5.zip
Add unit tests for the multi-word searching
Diffstat (limited to 'tests')
-rw-r--r--tests/empathy-live-search-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/empathy-live-search-test.c b/tests/empathy-live-search-test.c
index 6263481a2..6401f2557 100644
--- a/tests/empathy-live-search-test.c
+++ b/tests/empathy-live-search-test.c
@@ -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;