[libdazzle] tests: print which keyword matched
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tests: print which keyword matched
- Date: Sun, 4 Jun 2017 07:04:54 +0000 (UTC)
commit eef6a396eaa69a079fc163d7b33d9283e970cdb8
Author: Christian Hergert <chergert redhat com>
Date: Sun Jun 4 00:04:44 2017 -0700
tests: print which keyword matched
tests/test-desktop-index.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-desktop-index.c b/tests/test-desktop-index.c
index 8c59fc2..1408511 100644
--- a/tests/test-desktop-index.c
+++ b/tests/test-desktop-index.c
@@ -55,7 +55,9 @@ query_cb (GObject *object,
escaped = g_markup_escape_text (title, -1);
highlight = dzl_fuzzy_highlight (escaped, last_query, FALSE);
- subtitle = g_strdup_printf ("%lf", dzl_fuzzy_index_match_get_score (match));
+ subtitle = g_strdup_printf ("%lf (%s)",
+ dzl_fuzzy_index_match_get_score (match),
+ dzl_fuzzy_index_match_get_key (match));
suggestion = g_object_new (DZL_TYPE_SUGGESTION,
"id", id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]