[Groonga-commit] groonga/groonga [master] add a test for patricia trie prefix cursor with a different prefix entry.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 2日 (月) 15:58:42 JST


Kouhei Sutou	2010-08-02 06:58:42 +0000 (Mon, 02 Aug 2010)

  New Revision: 5ed55a1e3fc8e4b5fe9ba6520f9a11abcd04e04a

  Log:
    add a test for patricia trie prefix cursor with a different prefix entry.

  Modified files:
    test/unit/core/test-table-patricia-trie-cursor.c

  Modified: test/unit/core/test-table-patricia-trie-cursor.c (+10 -0)
===================================================================
--- test/unit/core/test-table-patricia-trie-cursor.c    2010-08-02 06:20:03 +0000 (fe27d26)
+++ test/unit/core/test-table-patricia-trie-cursor.c    2010-08-02 06:58:42 +0000 (12b5b8a)
@@ -474,6 +474,15 @@ data_prefix_geo_point(void)
     26,
     0, -1,
     GRN_CURSOR_SIZE_BY_BIT | GRN_CURSOR_DESCENDING);
+  ADD_DATA(
+    "bit - different prefix",
+    gcut_list_string_new(
+      "00000000 00111101 01010101 00111101 01110000 01001011 01110011 00101100",
+      NULL),
+    "00000000 00111101 01010101 00111101 01110000 00000000 00000000 00000001",
+    38,
+    0, -1,
+    GRN_CURSOR_SIZE_BY_BIT);
 
 #undef ADD_DATA
 }
@@ -526,6 +535,7 @@ test_prefix_geo_point(gpointer data)
       "00000000 00111111 01010000 00100010 00111011 01000000 00111000 01100100",
       "00000000 00111111 01010000 00100010 00100111 01000011 00000010 01101001",
       "00000000 00111111 01000101 01011100 00110110 00100010 00111000 01100001",
+      "00000000 00111101 01010101 00111101 01110000 01001011 01110011 00101100",
       NULL));
 
   GRN_TEXT_INIT(&min_string, 0);




Groonga-commit メーリングリストの案内
Back to archive index