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

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Mar 6 16:00:00 JST 2013


Kouhei Sutou	2013-03-06 16:00:00 +0900 (Wed, 06 Mar 2013)

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

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

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

  Modified: test/command/suite/select/filter/arithmetic_operation/unary_minus/uint16.expected (+5 -3)
===================================================================
--- test/command/suite/select/filter/arithmetic_operation/unary_minus/uint16.expected    2013-03-06 15:57:17 +0900 (5a4ba14)
+++ test/command/suite/select/filter/arithmetic_operation/unary_minus/uint16.expected    2013-03-06 16:00:00 +0900 (d79f5a5)
@@ -2,10 +2,12 @@ table_create Values TABLE_NO_KEY
 [[0,0.0,0.0],true]
 column_create Values value COLUMN_SCALAR UInt16
 [[0,0.0,0.0],true]
+column_create Values output COLUMN_SCALAR Int32
+[[0,0.0,0.0],true]
 load --table Values
 [
-{"value": 1}
+{"value": 65535}
 ]
 [[0,0.0,0.0],1]
-select Values   --filter true   --scorer '_score = -value'   --output_columns 'value, _score'
-[[0,0.0,0.0],[[[1],[["value","UInt16"],["_score","Int32"]],[1,-1]]]]
+select Values   --scorer 'output = -value'   --output_columns 'value, output'
+[[0,0.0,0.0],[[[1],[["value","UInt16"],["output","Int32"]],[65535,-65535]]]]

  Modified: test/command/suite/select/filter/arithmetic_operation/unary_minus/uint16.test (+4 -4)
===================================================================
--- test/command/suite/select/filter/arithmetic_operation/unary_minus/uint16.test    2013-03-06 15:57:17 +0900 (0090e37)
+++ test/command/suite/select/filter/arithmetic_operation/unary_minus/uint16.test    2013-03-06 16:00:00 +0900 (5df7cd0)
@@ -1,12 +1,12 @@
 table_create Values TABLE_NO_KEY
 column_create Values value COLUMN_SCALAR UInt16
+column_create Values output COLUMN_SCALAR Int32
 
 load --table Values
 [
-{"value": 1}
+{"value": 65535}
 ]
 
 select Values \
-  --filter true \
-  --scorer '_score = -value' \
-  --output_columns 'value, _score'
+  --scorer 'output = -value' \
+  --output_columns 'value, output'
-------------- next part --------------
HTML����������������������������...
下载 



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