From 9ab5da340ffe6f13afc5b3e32682635980b96ad5 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 22 Jun 2010 13:04:05 +0200 Subject: Add unit tests for the multi-word searching --- tests/empathy-live-search-test.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3