[libdazzle] tests: use incremental priorities



commit fcb317700b824a319b3e823ef0bb86056c36b2a5
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 5 00:58:19 2017 -0700

    tests: use incremental priorities
    
    This should help keep us honest with ensuring each priority level is
    ensured to be higher than the previous.

 tests/test-desktop-index.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/tests/test-desktop-index.c b/tests/test-desktop-index.c
index a1d0148..d620725 100644
--- a/tests/test-desktop-index.c
+++ b/tests/test-desktop-index.c
@@ -232,10 +232,11 @@ 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);
+  test_desktop_index_key (builder, key_file, "Desktop Entry", "Name", document, TRUE, 1);
+  test_desktop_index_key (builder, key_file, "Desktop Entry", "GenericName", document, TRUE, 2);
+  test_desktop_index_key (builder, key_file, "Desktop Entry", "Keywords", document, TRUE, 3);
+  test_desktop_index_key (builder, key_file, "Desktop Entry", "Comment", document, TRUE, 4);
+  test_desktop_index_key (builder, key_file, "Desktop Entry", "Categories", document, TRUE, 5);
 
   return TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]