[Groonga-commit] droonga/fluent-plugin-droonga at c86a7da [master] Add tests for more condition styles

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 28 20:31:48 JST 2013


YUKI Hiroshi	2013-11-28 20:31:48 +0900 (Thu, 28 Nov 2013)

  New Revision: c86a7daec46299c051d657610e6c103e718d7ae9
  https://github.com/droonga/fluent-plugin-droonga/commit/c86a7daec46299c051d657610e6c103e718d7ae9

  Message:
    Add tests for more condition styles

  Added files:
    test/command/suite/search/condition-nested.expected
    test/command/suite/search/condition-script.expected
  Copied files:
    test/command/suite/search/condition-nested.test
      (from test/command/suite/search/condition-query.test)
    test/command/suite/search/condition-script.test
      (from test/command/suite/search/condition-query.test)
  Modified files:
    test/command/suite/search/condition-query.test

  Added: test/command/suite/search/condition-nested.expected (+19 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/condition-nested.expected    2013-11-28 20:31:48 +0900 (0357087)
@@ -0,0 +1,19 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "result": {
+        "count": 1,
+        "records": [
+          [
+            "Groonga storage engine"
+          ]
+        ]
+      }
+    }
+  }
+]

  Copied: test/command/suite/search/condition-nested.test (+5 -4) 80%
===================================================================
--- test/command/suite/search/condition-query.test    2013-11-28 20:27:08 +0900 (d406574)
+++ test/command/suite/search/condition-nested.test    2013-11-28 20:31:48 +0900 (d96b917)
@@ -6,10 +6,11 @@
     "queries": {
       "result": {
         "source": "Sections",
-        "condition": {
-          "query": "groonga",
-          "matchTo": ["title"]
-        },
+        "condition": [
+          "&&",
+          "title @ 'groonga'",
+          "title @ 'engine'"
+        ],
         "sortBy": ["_key"],
         "output": {
           "elements": [

  Modified: test/command/suite/search/condition-query.test (+1 -4)
===================================================================
--- test/command/suite/search/condition-query.test    2013-11-28 20:27:08 +0900 (d406574)
+++ test/command/suite/search/condition-query.test    2013-11-28 20:31:48 +0900 (2bdc586)
@@ -6,10 +6,7 @@
     "queries": {
       "result": {
         "source": "Sections",
-        "condition": {
-          "query": "groonga",
-          "matchTo": ["title"]
-        },
+        "condition": "title @ 'groonga'",
         "sortBy": ["_key"],
         "output": {
           "elements": [

  Added: test/command/suite/search/condition-script.expected (+28 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/search/condition-script.expected    2013-11-28 20:31:48 +0900 (8664931)
@@ -0,0 +1,28 @@
+[
+  "droonga.message",
+  0,
+  {
+    "inReplyTo": null,
+    "statusCode": 200,
+    "type": "search.result",
+    "body": {
+      "result": {
+        "count": 4,
+        "records": [
+          [
+            "Groonga overview"
+          ],
+          [
+            "Groonga library"
+          ],
+          [
+            "Groonga server"
+          ],
+          [
+            "Groonga storage engine"
+          ]
+        ]
+      }
+    }
+  }
+]

  Copied: test/command/suite/search/condition-script.test (+0 -0) 100%
===================================================================
-------------- next part --------------
HTML����������������������������...
Download 



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