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

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 2日 (月) 18:20:09 JST


Kouhei Sutou	2010-08-02 09:20:09 +0000 (Mon, 02 Aug 2010)

  New Revision: b31d7f60bc98b3a10e80ba34f490dc4e66eb528e

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

  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 12:46:10 +0000 (12b5b8a)
+++ test/unit/core/test-table-patricia-trie-cursor.c    2010-08-02 09:20:09 +0000 (9293d63)
@@ -483,6 +483,15 @@ data_prefix_geo_point(void)
     38,
     0, -1,
     GRN_CURSOR_SIZE_BY_BIT);
+  ADD_DATA(
+    "bit - border prefix",
+    gcut_list_string_new(
+      "00000000 00111101 00000101 00111101 01110000 01001011 01110011 00101100",
+      NULL),
+    "00000000 00111101 00000101 00111101 01110000 00000000 00000000 00000001",
+    18,
+    0, -1,
+    GRN_CURSOR_SIZE_BY_BIT);
 
 #undef ADD_DATA
 }
@@ -536,6 +545,7 @@ test_prefix_geo_point(gpointer data)
       "00000000 00111111 01010000 00100010 00100111 01000011 00000010 01101001",
       "00000000 00111111 01000101 01011100 00110110 00100010 00111000 01100001",
       "00000000 00111101 01010101 00111101 01110000 01001011 01110011 00101100",
+      "00000000 00111101 00000101 00111101 01110000 01001011 01110011 00101100",
       NULL));
 
   GRN_TEXT_INIT(&min_string, 0);




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