[Groonga-commit] droonga/fluent-plugin-droonga at b865f76 [master] Update testcase for "groupBy" option

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Wed Dec 4 19:55:11 JST 2013


YUKI Hiroshi	2013-12-04 19:55:11 +0900 (Wed, 04 Dec 2013)

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

  Message:
    Update testcase for "groupBy" option

  Modified files:
    test/command/suite/search/group-only-count.test
    test/command/suite/search/group-with-limit.expected
    test/command/suite/search/group-with-limit.test

  Modified: test/command/suite/search/group-only-count.test (+3 -5)
===================================================================
--- test/command/suite/search/group-only-count.test    2013-12-04 19:51:18 +0900 (bf370f4)
+++ test/command/suite/search/group-only-count.test    2013-12-04 19:55:11 +0900 (710453c)
@@ -6,13 +6,11 @@
     "queries": {
       "documents": {
         "source": "Sections",
-        "groupBy": "title",
+        "groupBy": "document",
         "output": {
           "elements": [
-            "count",
-            "records"
-          ],
-          "limit": 1
+            "count"
+          ]
         }
       }
     }

  Modified: test/command/suite/search/group-with-limit.expected (+5 -1)
===================================================================
--- test/command/suite/search/group-with-limit.expected    2013-12-04 19:51:18 +0900 (ee6a0fe)
+++ test/command/suite/search/group-with-limit.expected    2013-12-04 19:55:11 +0900 (c2859b1)
@@ -8,7 +8,11 @@
     "body": {
       "documents": {
         "count": 9,
-        "records": []
+        "records": [
+          [],
+          [],
+          []
+        ]
       }
     }
   }

  Modified: test/command/suite/search/group-with-limit.test (+5 -3)
===================================================================
--- test/command/suite/search/group-with-limit.test    2013-12-04 19:51:18 +0900 (710453c)
+++ test/command/suite/search/group-with-limit.test    2013-12-04 19:55:11 +0900 (44cc1bb)
@@ -6,11 +6,13 @@
     "queries": {
       "documents": {
         "source": "Sections",
-        "groupBy": "document",
+        "groupBy": "title",
         "output": {
           "elements": [
-            "count"
-          ]
+            "count",
+            "records"
+          ],
+          "limit": 3
         }
       }
     }
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る