Skip to content

Commit

Permalink
Add a test for binary assign operation for Int8 type
Browse files Browse the repository at this point in the history
Operation: X ^= Y
  • Loading branch information
kou committed Mar 1, 2013
1 parent 17bb10a commit 592402d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
@@ -0,0 +1,13 @@
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]
column_create Values output COLUMN_SCALAR Int8
[[0,0.0,0.0],true]
load --table Values
[
{"value": 7, "output": -126}
]
[[0,0.0,0.0],1]
select Values --filter true --scorer 'output ^= value' --output_columns 'value, output'
[[0,0.0,0.0],[[[1],[["value","Int8"],["output","Int8"]],[7,-123]]]]
13 changes: 13 additions & 0 deletions test/command/suite/select/operation/bitwise_xor_assign/int8.test
@@ -0,0 +1,13 @@
table_create Values TABLE_NO_KEY
column_create Values value COLUMN_SCALAR Int8
column_create Values output COLUMN_SCALAR Int8

load --table Values
[
{"value": 7, "output": -126}
]

select Values \
--filter true \
--scorer 'output ^= value' \
--output_columns 'value, output'

0 comments on commit 592402d

Please sign in to comment.