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

Back to archive index

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


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

  New Revision: 3b0b05e24eaf17d97cb8d0ae1cd62ceee70f2309
  https://github.com/groonga/groonga/commit/3b0b05e24eaf17d97cb8d0ae1cd62ceee70f2309

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

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

  Modified: test/command/suite/select/filter/arithmetic_operation/unary_minus/uint8.expected (+5 -3)
===================================================================
--- test/command/suite/select/filter/arithmetic_operation/unary_minus/uint8.expected    2013-03-06 16:02:01 +0900 (a6ee596)
+++ test/command/suite/select/filter/arithmetic_operation/unary_minus/uint8.expected    2013-03-06 16:03:08 +0900 (bd6410e)
@@ -2,10 +2,12 @@ table_create Values TABLE_NO_KEY
 [[0,0.0,0.0],true]
 column_create Values value COLUMN_SCALAR UInt8
 [[0,0.0,0.0],true]
+column_create Values output COLUMN_SCALAR Int16
+[[0,0.0,0.0],true]
 load --table Values
 [
-{"value": 1}
+{"value": 255}
 ]
 [[0,0.0,0.0],1]
-select Values   --filter true   --scorer '_score = -value'   --output_columns 'value, _score'
-[[0,0.0,0.0],[[[1],[["value","UInt8"],["_score","Int32"]],[1,-1]]]]
+select Values   --scorer 'output = -value'   --output_columns 'value, output'
+[[0,0.0,0.0],[[[1],[["value","UInt8"],["output","Int16"]],[255,-255]]]]

  Modified: test/command/suite/select/filter/arithmetic_operation/unary_minus/uint8.test (+4 -4)
===================================================================
--- test/command/suite/select/filter/arithmetic_operation/unary_minus/uint8.test    2013-03-06 16:02:01 +0900 (7e4677a)
+++ test/command/suite/select/filter/arithmetic_operation/unary_minus/uint8.test    2013-03-06 16:03:08 +0900 (79000e9)
@@ -1,12 +1,12 @@
 table_create Values TABLE_NO_KEY
 column_create Values value COLUMN_SCALAR UInt8
+column_create Values output COLUMN_SCALAR Int16
 
 load --table Values
 [
-{"value": 1}
+{"value": 255}
 ]
 
 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