[Groonga-commit] groonga/groonga at d53e739 [master] test: fix wrong input

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Apr 10 22:08:38 JST 2016


Kouhei Sutou	2016-04-10 22:08:38 +0900 (Sun, 10 Apr 2016)

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

  Message:
    test: fix wrong input
    
    Empty value should be '' not omitting value.

  Modified files:
    test/command/suite/select/drilldown/labeled/table/empty.expected
    test/command/suite/select/drilldown/labeled/table/empty.test

  Modified: test/command/suite/select/drilldown/labeled/table/empty.expected (+8 -38)
===================================================================
--- test/command/suite/select/drilldown/labeled/table/empty.expected    2016-04-10 16:23:28 +0900 (edb1a4a)
+++ test/command/suite/select/drilldown/labeled/table/empty.expected    2016-04-10 22:08:38 +0900 (1e31337)
@@ -21,12 +21,15 @@ load --table Tags
 {"_key": "Rroonga", "category": "Ruby"}
 ]
 [[0,0.0,0.0],3]
-select Memos   --drilldown[tag].keys tag   --drilldown[tag].output_columns _key,_nsubrecs,category   --drilldown[category].table   --drilldown[category].keys category   --drilldown[category].output_columns _key,_nsubrecs
+select Memos   --drilldown[category].table ''   --drilldown[category].keys category   --drilldown[category].output_columns _key,_nsubrecs   --drilldown[tag].keys tag   --drilldown[tag].output_columns _key,_nsubrecs,category
 [
   [
-    0,
-    0.0,
-    0.0
+    [
+      -22,
+      0.0,
+      0.0
+    ],
+    "invalid sort key: <category>(<category>)"
   ],
   [
     [
@@ -69,40 +72,7 @@ select Memos   --drilldown[tag].keys tag   --drilldown[tag].output_columns _key,
       ]
     ],
     {
-      "tag": [
-        [
-          3
-        ],
-        [
-          [
-            "_key",
-            "ShortText"
-          ],
-          [
-            "_nsubrecs",
-            "Int32"
-          ],
-          [
-            "category",
-            "ShortText"
-          ]
-        ],
-        [
-          "Groonga",
-          2,
-          "C/C++"
-        ],
-        [
-          "Mroonga",
-          1,
-          "C/C++"
-        ],
-        [
-          "Rroonga",
-          1,
-          "Ruby"
-        ]
-      ]
     }
   ]
 ]
+#|w| invalid sort key: <category>(<category>)

  Modified: test/command/suite/select/drilldown/labeled/table/empty.test (+4 -4)
===================================================================
--- test/command/suite/select/drilldown/labeled/table/empty.test    2016-04-10 16:23:28 +0900 (399f388)
+++ test/command/suite/select/drilldown/labeled/table/empty.test    2016-04-10 22:08:38 +0900 (c821a12)
@@ -20,8 +20,8 @@ load --table Tags
 ]
 
 select Memos \
-  --drilldown[tag].keys tag \
-  --drilldown[tag].output_columns _key,_nsubrecs,category \
-  --drilldown[category].table \
+  --drilldown[category].table '' \
   --drilldown[category].keys category \
-  --drilldown[category].output_columns _key,_nsubrecs
+  --drilldown[category].output_columns _key,_nsubrecs \
+  --drilldown[tag].keys tag \
+  --drilldown[tag].output_columns _key,_nsubrecs,category
-------------- next part --------------
HTML����������������������������...
Download 



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