Kouhei Sutou
null+****@clear*****
Wed Jun 19 12:37:21 JST 2013
Kouhei Sutou 2013-06-19 12:37:21 +0900 (Wed, 19 Jun 2013) New Revision: deac1c07bf1c0253851c44a883dc9e9a40afa04a https://github.com/groonga/groonga/commit/deac1c07bf1c0253851c44a883dc9e9a40afa04a Message: Add a test for unary operation with overflowed value Added files: test/command/suite/select/scorer/overflow/unary_operation/uint8.expected test/command/suite/select/scorer/overflow/unary_operation/uint8.test Added: test/command/suite/select/scorer/overflow/unary_operation/uint8.expected (+48 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/scorer/overflow/unary_operation/uint8.expected 2013-06-19 12:37:21 +0900 (afaa90c) @@ -0,0 +1,48 @@ +table_create Values TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Values uint8 COLUMN_SCALAR UInt8 +[[0,0.0,0.0],true] +load --table Values +[ +{"uint8": 100}, +{"uint8": 200}, +{"uint8": 30} +] +[[0,0.0,0.0],3] +select Values --filter 'true' --output_columns 'uint8,_score' --scorer '_score = -uint8' +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 3 + ], + [ + [ + "uint8", + "UInt8" + ], + [ + "_score", + "Int32" + ] + ], + [ + 100, + -100 + ], + [ + 200, + -200 + ], + [ + 30, + -30 + ] + ] + ] +] Added: test/command/suite/select/scorer/overflow/unary_operation/uint8.test (+14 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/scorer/overflow/unary_operation/uint8.test 2013-06-19 12:37:21 +0900 (7fc0d13) @@ -0,0 +1,14 @@ +table_create Values TABLE_NO_KEY +column_create Values uint8 COLUMN_SCALAR UInt8 + +load --table Values +[ +{"uint8": 100}, +{"uint8": 200}, +{"uint8": 30} +] + +select Values \ + --filter 'true' \ + --output_columns 'uint8,_score' \ + --scorer '_score = -uint8' -------------- next part -------------- HTML����������������������������...Download