[empathy] Add unit tests for the multi-word searching
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Add unit tests for the multi-word searching
- Date: Fri, 30 Jul 2010 11:12:13 +0000 (UTC)
commit 9ab5da340ffe6f13afc5b3e32682635980b96ad5
Author: Xavier Claessens <xclaesse gmail com>
Date: Tue Jun 22 13:04:05 2010 +0200
Add unit tests for the multi-word searching
tests/empathy-live-search-test.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/empathy-live-search-test.c b/tests/empathy-live-search-test.c
index 6263481..6401f25 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]