Kouhei Sutou
null+****@clear*****
Mon Feb 10 16:09:53 JST 2014
Kouhei Sutou 2014-02-10 16:09:53 +0900 (Mon, 10 Feb 2014) New Revision: 71af79ec94b48113a05abfdaad75917445c880dc https://github.com/groonga/groonga/commit/71af79ec94b48113a05abfdaad75917445c880dc Message: test: add tests for INT32_MIN / -1 and INT64_MIN / -1 Redmine: refs #2307 Added files: test/command/suite/select/filter/arithmetic_operation/slash/int32_min_and_minus_one.expected test/command/suite/select/filter/arithmetic_operation/slash/int32_min_and_minus_one.test test/command/suite/select/filter/arithmetic_operation/slash/int64_min_and_minus_one.expected test/command/suite/select/filter/arithmetic_operation/slash/int64_min_and_minus_one.test Added: test/command/suite/select/filter/arithmetic_operation/slash/int32_min_and_minus_one.expected (+38 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/filter/arithmetic_operation/slash/int32_min_and_minus_one.expected 2014-02-10 16:09:53 +0900 (e2d72f7) @@ -0,0 +1,38 @@ +table_create Values TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Values value COLUMN_SCALAR Int32 +[[0,0.0,0.0],true] +load --table Values +[ +{"value": -2147483648} +] +[[0,0.0,0.0],1] +select Values --output_columns 'value, value / -1' --command_version 2 +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "value", + "Int32" + ], + [ + "value", + "Int32" + ] + ], + [ + -2147483648, + -2147483648 + ] + ] + ] +] Added: test/command/suite/select/filter/arithmetic_operation/slash/int32_min_and_minus_one.test (+11 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/filter/arithmetic_operation/slash/int32_min_and_minus_one.test 2014-02-10 16:09:53 +0900 (9a8f4d4) @@ -0,0 +1,11 @@ +table_create Values TABLE_NO_KEY +column_create Values value COLUMN_SCALAR Int32 + +load --table Values +[ +{"value": -2147483648} +] + +select Values \ + --output_columns 'value, value / -1' \ + --command_version 2 Added: test/command/suite/select/filter/arithmetic_operation/slash/int64_min_and_minus_one.expected (+38 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/filter/arithmetic_operation/slash/int64_min_and_minus_one.expected 2014-02-10 16:09:53 +0900 (c9a0601) @@ -0,0 +1,38 @@ +table_create Values TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Values value COLUMN_SCALAR Int64 +[[0,0.0,0.0],true] +load --table Values +[ +{"value": -9223372036854775808} +] +[[0,0.0,0.0],1] +select Values --output_columns 'value, value / -1' --command_version 2 +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "value", + "Int64" + ], + [ + "value", + "Int64" + ] + ], + [ + -9223372036854775808, + -9223372036854775808 + ] + ] + ] +] Added: test/command/suite/select/filter/arithmetic_operation/slash/int64_min_and_minus_one.test (+11 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/filter/arithmetic_operation/slash/int64_min_and_minus_one.test 2014-02-10 16:09:53 +0900 (621d1dd) @@ -0,0 +1,11 @@ +table_create Values TABLE_NO_KEY +column_create Values value COLUMN_SCALAR Int64 + +load --table Values +[ +{"value": -9223372036854775808} +] + +select Values \ + --output_columns 'value, value / -1' \ + --command_version 2 -------------- next part -------------- HTML����������������������������...Download