Skip to content

Commit

Permalink
Add a test for binary operation for Int8 type
Browse files Browse the repository at this point in the history
Operation: X << Y
  • Loading branch information
kou committed Feb 27, 2013
1 parent 2168f63 commit d131b9e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/command/suite/select/operation/shift_l/int8.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
table_create Values TABLE_NO_KEY
[[0,0.0,0.0],true]
column_create Values value COLUMN_SCALAR Int8
[[0,0.0,0.0],true]
load --table Values
[
{"value": -14}
]
[[0,0.0,0.0],1]
select Values --filter true --scorer '_score = value << 2' --output_columns 'value, _score'
[[0,0.0,0.0],[[[1],[["value","Int8"],["_score","Int32"]],[-14,-56]]]]
12 changes: 12 additions & 0 deletions test/command/suite/select/operation/shift_l/int8.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
table_create Values TABLE_NO_KEY
column_create Values value COLUMN_SCALAR Int8

load --table Values
[
{"value": -14}
]

select Values \
--filter true \
--scorer '_score = value << 2' \
--output_columns 'value, _score'

0 comments on commit d131b9e

Please sign in to comment.