[Groonga-commit] groonga/groonga [master] add tests for no match case.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 18日 (水) 16:42:53 JST


Kouhei Sutou	2010-08-18 07:42:53 +0000 (Wed, 18 Aug 2010)

  New Revision: 0d8e86602a92531dc8f2ffb36eb6463eb528d5fa

  Log:
    add tests for no match case.

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

  Modified: test/unit/core/test-table-patricia-trie-cursor.c (+22 -0)
===================================================================
--- test/unit/core/test-table-patricia-trie-cursor.c    2010-08-18 01:40:39 +0000 (92819ee)
+++ test/unit/core/test-table-patricia-trie-cursor.c    2010-08-18 07:42:53 +0000 (e26fbaf)
@@ -786,6 +786,27 @@ data_prefix_rk_offset_and_limit(void)
            3, 5);
 }
 
+static void
+data_prefix_rk_no_match(void)
+{
+  ADD_DATA("roman - no match",
+           NULL,
+           "kumikomuy",
+           0, -1);
+  ADD_DATA("roman - upcase - no match",
+           NULL,
+           "K",
+           0, -1);
+  ADD_DATA("ひらがな - no match",
+           NULL,
+           "くみこむよ",
+           0, -1);
+  ADD_DATA("カタカナ - no match",
+           NULL,
+           "クミコムヨ",
+           0, -1);
+}
+
 void
 data_prefix_rk(void)
 {
@@ -793,6 +814,7 @@ data_prefix_rk(void)
   data_prefix_rk_xtsu();
   data_prefix_rk_xyu();
   data_prefix_rk_offset_and_limit();
+  data_prefix_rk_no_match();
 }
 #undef ADD_DATA
 




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