[Groonga-commit] groonga/groonga [master] Use the max UInt32 value for -X for UInt32 test

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Mar 6 15:57:17 JST 2013


Kouhei Sutou	2013-03-06 15:57:17 +0900 (Wed, 06 Mar 2013)

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

  Log:
    Use the max UInt32 value for -X for UInt32 test

  Modified files:
    test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.expected
    test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.test

  Modified: test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.expected (+32 -3)
===================================================================
--- test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.expected    2013-03-06 15:55:24 +0900 (da9bea3)
+++ test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.expected    2013-03-06 15:57:17 +0900 (e2a4905)
@@ -2,10 +2,39 @@ table_create Values TABLE_NO_KEY
 [[0,0.0,0.0],true]
 column_create Values value COLUMN_SCALAR UInt32
 [[0,0.0,0.0],true]
+column_create Values output COLUMN_SCALAR Int64
+[[0,0.0,0.0],true]
 load --table Values
 [
-{"value": 1}
+{"value": 4294967295}
 ]
 [[0,0.0,0.0],1]
-select Values   --filter true   --scorer '_score = -value'   --output_columns 'value, _score'
-[[0,0.0,0.0],[[[1],[["value","UInt32"],["_score","Int32"]],[1,-1]]]]
+select Values   --scorer 'output = -value'   --output_columns 'value, output'
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        1
+      ],
+      [
+        [
+          "value",
+          "UInt32"
+        ],
+        [
+          "output",
+          "Int64"
+        ]
+      ],
+      [
+        4294967295,
+        -4294967295
+      ]
+    ]
+  ]
+]

  Modified: test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.test (+4 -4)
===================================================================
--- test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.test    2013-03-06 15:55:24 +0900 (7ae9713)
+++ test/command/suite/select/filter/arithmetic_operation/unary_minus/uint32.test    2013-03-06 15:57:17 +0900 (c055ad8)
@@ -1,12 +1,12 @@
 table_create Values TABLE_NO_KEY
 column_create Values value COLUMN_SCALAR UInt32
+column_create Values output COLUMN_SCALAR Int64
 
 load --table Values
 [
-{"value": 1}
+{"value": 4294967295}
 ]
 
 select Values \
-  --filter true \
-  --scorer '_score = -value' \
-  --output_columns 'value, _score'
+  --scorer 'output = -value' \
+  --output_columns 'value, output'
-------------- next part --------------
HTML����������������������������...
Download 



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