[libdazzle] tests: index by words and as phrase
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tests: index by words and as phrase
- Date: Sun, 4 Jun 2017 02:51:21 +0000 (UTC)
commit 2430be984e0feeb701fda700a31e77cfc4608df4
Author: Christian Hergert <chergert redhat com>
Date: Sat Jun 3 19:51:09 2017 -0700
tests: index by words and as phrase
If we have a term like "Mozilla Firefox" we want to allow matching fuzzy
by both words and also get a boost when we just type "Fire".
tests/test-desktop-index.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-desktop-index.c b/tests/test-desktop-index.c
index 8fd34f6..8c59fc2 100644
--- a/tests/test-desktop-index.c
+++ b/tests/test-desktop-index.c
@@ -227,6 +227,7 @@ test_desktop_index_file (DzlFuzzyIndexBuilder *builder,
document = g_variant_take_ref (g_variant_dict_end (&dict));
test_desktop_index_key (builder, key_file, "Desktop Entry", "Name", document, FALSE, 0);
+ test_desktop_index_key (builder, key_file, "Desktop Entry", "Name", document, TRUE, 0);
test_desktop_index_key (builder, key_file, "Desktop Entry", "Keywords", document, TRUE, 20);
test_desktop_index_key (builder, key_file, "Desktop Entry", "Comment", document, TRUE, 40);
test_desktop_index_key (builder, key_file, "Desktop Entry", "Categories", document, TRUE, 60);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]