[Groonga-commit] groonga/groonga [master] Move Cutter tests to grntest tests

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 9 15:12:34 JST 2012


Kouhei Sutou	2012-10-09 15:12:34 +0900 (Tue, 09 Oct 2012)

  New Revision: a05cb6f0d669629afc8407908b285728822e9f68
  https://github.com/groonga/groonga/commit/a05cb6f0d669629afc8407908b285728822e9f68

  Log:
    Move Cutter tests to grntest tests
    
    Tests for --query_expansion with nonexistent column is moved.

  Added files:
    test/command/suite/select/query_expansion/nonexistent_expansion_column.expected
    test/command/suite/select/query_expansion/nonexistent_expansion_column.test
  Modified files:
    test/unit/core/test-command-select-query-expansion.c

  Added: test/command/suite/select/query_expansion/nonexistent_expansion_column.expected (+20 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/query_expansion/nonexistent_expansion_column.expected    2012-10-09 15:12:34 +0900 (eb0122f)
@@ -0,0 +1,20 @@
+table_create Memos TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Memos content COLUMN_SCALAR ShortText
+[[0,0.0,0.0],true]
+table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
+[[0,0.0,0.0],true]
+column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content
+[[0,0.0,0.0],true]
+select --table Memos --query_expansion Nonexistent.nonexistent   --match_columns content --query rroonga
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "nonexistent query expansion column: <Nonexistent.nonexistent>"
+  ]
+]
+#|e| nonexistent query expansion column: <Nonexistent.nonexistent>

  Added: test/command/suite/select/query_expansion/nonexistent_expansion_column.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/query_expansion/nonexistent_expansion_column.test    2012-10-09 15:12:34 +0900 (2fdc2e6)
@@ -0,0 +1,8 @@
+table_create Memos TABLE_NO_KEY
+column_create Memos content COLUMN_SCALAR ShortText
+
+table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
+column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content
+
+select --table Memos --query_expansion Nonexistent.nonexistent \
+  --match_columns content --query rroonga

  Modified: test/unit/core/test-command-select-query-expansion.c (+0 -11)
===================================================================
--- test/unit/core/test-command-select-query-expansion.c    2012-10-09 14:04:44 +0900 (c808040)
+++ test/unit/core/test-command-select-query-expansion.c    2012-10-09 15:12:34 +0900 (c744d9e)
@@ -192,17 +192,6 @@ data_nonexistent_expansion_column(void)
 }
 
 void
-test_nonexistent_expansion_column(gconstpointer data)
-{
-  grn_test_assert_send_command_error(
-    context,
-    GRN_INVALID_ARGUMENT,
-    "nonexistent query expansion column: <Synonyms.nonexistent>",
-    "select Diaries --match_columns content --query groonga "
-    "--query_expansion Synonyms.nonexistent");
-}
-
-void
 data_key_normalize(void)
 {
   data_scalar_and_vector();
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index