[Groonga-commit] groonga/groonga at 2e28c4d [master] test: more robust

Back to archive index
Kouhei Sutou null+****@clear*****
Mon Mar 4 14:55:55 JST 2019


Kouhei Sutou	2019-03-04 14:55:55 +0900 (Mon, 04 Mar 2019)

  Revision: 2e28c4d3b54974a54300b5173b55a187d6edc51c
  https://github.com/groonga/groonga/commit/2e28c4d3b54974a54300b5173b55a187d6edc51c

  Message:
    test: more robust

  Modified files:
    test/command/suite/select/score/need_temporary_table/or.expected
    test/command/suite/select/score/need_temporary_table/or.test

  Modified: test/command/suite/select/score/need_temporary_table/or.expected (+5 -5)
===================================================================
--- test/command/suite/select/score/need_temporary_table/or.expected    2019-03-04 14:53:57 +0900 (3ad268efb)
+++ test/command/suite/select/score/need_temporary_table/or.expected    2019-03-04 14:55:55 +0900 (7774252dc)
@@ -14,7 +14,7 @@ load --table Movies
 {"_key": "Star Wars", "tags": ["George Lucas", "SF", "English", "US"]}
 ]
 [[0,0.0,0.0],4]
-select Movies   --output_columns "_key, _score"   --filter '(tags @ "English" && tags @ "SF") || (tags @ "US" &! tags @ "Keanu Reeves")'
+select Movies   --output_columns "_key, _score"   --filter '(tags @ "English" && tags @ "SF") || (tags @ "US" &! tags @ "Keanu Reeves")'   --sort_keys -_score
 [
   [
     0,
@@ -37,16 +37,16 @@ select Movies   --output_columns "_key, _score"   --filter '(tags @ "English" &&
         ]
       ],
       [
-        "The Last Samurai",
-        1
+        "Star Wars",
+        3
       ],
       [
         "The Matrix",
         2
       ],
       [
-        "Star Wars",
-        3
+        "The Last Samurai",
+        1
       ]
     ]
   ]

  Modified: test/command/suite/select/score/need_temporary_table/or.test (+2 -1)
===================================================================
--- test/command/suite/select/score/need_temporary_table/or.test    2019-03-04 14:53:57 +0900 (b87ad66ce)
+++ test/command/suite/select/score/need_temporary_table/or.test    2019-03-04 14:55:55 +0900 (fe9256578)
@@ -15,4 +15,5 @@ load --table Movies
 
 select Movies \
   --output_columns "_key, _score" \
-  --filter '(tags @ "English" && tags @ "SF") || (tags @ "US" &! tags @ "Keanu Reeves")'
+  --filter '(tags @ "English" && tags @ "SF") || (tags @ "US" &! tags @ "Keanu Reeves")' \
+  --sort_keys -_score
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190304/bc1fedda/attachment-0001.html>


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