[Groonga-commit] groonga/groonga at 450f568 [master] test: simplify

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 12 10:41:15 JST 2017


Kouhei Sutou	2017-07-12 10:41:15 +0900 (Wed, 12 Jul 2017)

  New Revision: 450f56810022e614099a4556e0082c15b9f30231
  https://github.com/groonga/groonga/commit/450f56810022e614099a4556e0082c15b9f30231

  Message:
    test: simplify

  Modified files:
    test/command/suite/select/function/time/time_classify_month/overflow_interval.expected
    test/command/suite/select/function/time/time_classify_month/overflow_interval.test

  Modified: test/command/suite/select/function/time/time_classify_month/overflow_interval.expected (+4 -29)
===================================================================
--- test/command/suite/select/function/time/time_classify_month/overflow_interval.expected    2017-07-12 09:08:06 +0900 (6bfb802)
+++ test/command/suite/select/function/time/time_classify_month/overflow_interval.expected    2017-07-12 10:41:15 +0900 (74a7413)
@@ -4,15 +4,10 @@ table_create Timestamps TABLE_PAT_KEY Time
 [[0,0.0,0.0],true]
 load --table Timestamps
 [
-{"_key": "2016-04-30 23:59:59.999999"},
-{"_key": "2016-05-01 00:00:00.000000"},
-{"_key": "2016-05-01 00:00:00.000001"},
-{"_key": "2016-06-30 23:59:59.999999"},
-{"_key": "2016-07-01 00:00:00.000000"},
 {"_key": "2016-07-01 00:00:00.000001"}
 ]
-[[0,0.0,0.0],6]
-select Timestamps   --sortby _id   --limit -1   --output_columns '_key, time_classify_month(_key, 4294967296)'
+[[0,0.0,0.0],1]
+select Timestamps   --output_columns '_key, time_classify_month(_key, 4294967296)'
 [
   [
     [
@@ -25,7 +20,7 @@ select Timestamps   --sortby _id   --limit -1   --output_columns '_key, time_cla
   [
     [
       [
-        6
+        1
       ],
       [
         [
@@ -38,27 +33,7 @@ select Timestamps   --sortby _id   --limit -1   --output_columns '_key, time_cla
         ]
       ],
       [
-        1462060799.999999,
-        "time_classify_month(): the second argument must not be zero: <4294967296>"
-      ],
-      [
-        1462060800.0,
-        "time_classify_month(): the second argument must not be zero: <4294967296>"
-      ],
-      [
-        1462060800.000001,
-        "time_classify_month(): the second argument must not be zero: <4294967296>"
-      ],
-      [
-        1467331199.999999,
-        "time_classify_month(): the second argument must not be zero: <4294967296>"
-      ],
-      [
-        1467331200.0,
-        "time_classify_month(): the second argument must not be zero: <4294967296>"
-      ],
-      [
-        1467331200.000001,
+        1467298800.000001,
         "time_classify_month(): the second argument must not be zero: <4294967296>"
       ]
     ]

  Modified: test/command/suite/select/function/time/time_classify_month/overflow_interval.test (+0 -7)
===================================================================
--- test/command/suite/select/function/time/time_classify_month/overflow_interval.test    2017-07-12 09:08:06 +0900 (d0900d2)
+++ test/command/suite/select/function/time/time_classify_month/overflow_interval.test    2017-07-12 10:41:15 +0900 (8efcd8f)
@@ -4,15 +4,8 @@ table_create Timestamps TABLE_PAT_KEY Time
 
 load --table Timestamps
 [
-{"_key": "2016-04-30 23:59:59.999999"},
-{"_key": "2016-05-01 00:00:00.000000"},
-{"_key": "2016-05-01 00:00:00.000001"},
-{"_key": "2016-06-30 23:59:59.999999"},
-{"_key": "2016-07-01 00:00:00.000000"},
 {"_key": "2016-07-01 00:00:00.000001"}
 ]
 
 select Timestamps \
-  --sortby _id \
-  --limit -1 \
   --output_columns '_key, time_classify_month(_key, 4294967296)'
-------------- next part --------------
HTML����������������������������...
Download 



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