[Groonga-commit] groonga/groonga at 76d3e1e [master] test: add a tet for table_create --token_filters

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Aug 15 15:56:42 JST 2016


Kouhei Sutou	2016-08-15 15:56:42 +0900 (Mon, 15 Aug 2016)

  New Revision: 76d3e1eec5652a58287b0dcf34ca8171f7c56eb4
  https://github.com/groonga/groonga/commit/76d3e1eec5652a58287b0dcf34ca8171f7c56eb4

  Message:
    test: add a tet for table_create --token_filters

  Added files:
    test/command/suite/table_create/token_filters/nonexistent.expected
    test/command/suite/table_create/token_filters/nonexistent.test

  Added: test/command/suite/table_create/token_filters/nonexistent.expected (+17 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/table_create/token_filters/nonexistent.expected    2016-08-15 15:56:42 +0900 (65e527a)
@@ -0,0 +1,17 @@
+register token_filters/stop_word
+[[0,0.0,0.0],true]
+table_create Terms TABLE_PAT_KEY ShortText   --default_tokenizer TokenBigram   --normalizer NormalizerAuto   --token_filters "TokenFilterStopWord,TokenFilterNonexistent,TokenFilterStopWord"
+[
+  [
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "[table][create][token-filter] nonexistent token filter: <TokenFilterNonexistent>"
+  ],
+  false
+]
+#|e| [table][create][token-filter] nonexistent token filter: <TokenFilterNonexistent>
+dump
+plugin_register token_filters/stop_word

  Added: test/command/suite/table_create/token_filters/nonexistent.test (+8 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/table_create/token_filters/nonexistent.test    2016-08-15 15:56:42 +0900 (3d2d17e)
@@ -0,0 +1,8 @@
+register token_filters/stop_word
+
+table_create Terms TABLE_PAT_KEY ShortText \
+  --default_tokenizer TokenBigram \
+  --normalizer NormalizerAuto \
+  --token_filters "TokenFilterStopWord,TokenFilterNonexistent,TokenFilterStopWord"
+
+dump
-------------- next part --------------
HTML����������������������������...
Download 



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