[Groonga-commit] groonga/groonga [master] add more tests for GRN_CURSOR_RK.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 17日 (火) 16:37:14 JST


Kouhei Sutou	2010-08-17 07:37:14 +0000 (Tue, 17 Aug 2010)

  New Revision: 2dce3d820c4fc34b8c3a30920bc13d6463b6d760

  Log:
    add more tests for GRN_CURSOR_RK.

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

  Modified: test/unit/core/test-table-patricia-trie-cursor.c (+46 -1)
===================================================================
--- test/unit/core/test-table-patricia-trie-cursor.c    2010-08-17 07:14:25 +0000 (4b393e1)
+++ test/unit/core/test-table-patricia-trie-cursor.c    2010-08-17 07:37:14 +0000 (3100aad)
@@ -625,7 +625,7 @@ data_prefix_rk(void)
                  NULL)
 
   ADD_DATA(
-    "roman - 1 - ascending",
+    "roman - 1byte - ascending",
     gcut_list_string_new("カネソナエタ",
                          "カノウ",
                          "キノウ",
@@ -642,6 +642,51 @@ data_prefix_rk(void)
     "k",
     0, -1,
     GRN_CURSOR_ASCENDING);
+  ADD_DATA(
+    "ひらがな - ascending",
+    gcut_list_string_new("コウセイド",
+                         "コウソク",
+                         NULL),
+    "こう",
+    0, -1,
+    GRN_CURSOR_ASCENDING);
+  ADD_DATA(
+    "カタカナ - ascending",
+    gcut_list_string_new("コウセイド",
+                         "コウソク",
+                         NULL),
+    "コウ",
+    0, -1,
+    GRN_CURSOR_ASCENDING);
+  ADD_DATA(
+    "ひらがな and カタカナ - ascending",
+    gcut_list_string_new("コウセイド",
+                         "コウソク",
+                         NULL),
+    "こウ",
+    0, -1,
+    GRN_CURSOR_ASCENDING);
+  ADD_DATA(
+    "ッ - full - ascending",
+    gcut_list_string_new("インデックス",
+                         NULL),
+    "indekk",
+    0, -1,
+    GRN_CURSOR_ASCENDING);
+  ADD_DATA(
+    "ッ - half - ascending",
+    gcut_list_string_new("インデックス",
+                         NULL),
+    "indek",
+    0, -1,
+    GRN_CURSOR_ASCENDING);
+  ADD_DATA(
+    "ュ - ascending",
+    gcut_list_string_new("ヨウキュウ",
+                         NULL),
+    "youkyu",
+    0, -1,
+    GRN_CURSOR_ASCENDING);
 
 #undef ADD_DATA
 }




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