[Groonga-commit] groonga/groonga [master] Add a test for binary assign operation for Int8 type

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Mar 1 13:49:30 JST 2013


Kouhei Sutou	2013-03-01 13:49:30 +0900 (Fri, 01 Mar 2013)

  New Revision: a277ee8f99d0529ddb50fcc4819f89a3fa7303ee
  https://github.com/groonga/groonga/commit/a277ee8f99d0529ddb50fcc4819f89a3fa7303ee

  Merged d686f72: Merge pull request #56 from groonga/support-numeric-arithmetic-operations-for-small-value-types

  Log:
    Add a test for binary assign operation for Int8 type
    
    Operation: X >>= Y

  Added files:
    test/command/suite/select/operation/shift_r_assign/int8.expected
    test/command/suite/select/operation/shift_r_assign/int8.test

  Added: test/command/suite/select/operation/shift_r_assign/int8.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_r_assign/int8.expected    2013-03-01 13:49:30 +0900 (1065c14)
@@ -0,0 +1,11 @@
+table_create Values TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Values output COLUMN_SCALAR Int8
+[[0,0.0,0.0],true]
+load --table Values
+[
+{"output": -14}
+]
+[[0,0.0,0.0],1]
+select Values   --filter true   --scorer 'output >>= 2'   --output_columns 'output'
+[[0,0.0,0.0],[[[1],[["output","Int8"]],[-4]]]]

  Added: test/command/suite/select/operation/shift_r_assign/int8.test (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_r_assign/int8.test    2013-03-01 13:49:30 +0900 (490c8e7)
@@ -0,0 +1,12 @@
+table_create Values TABLE_NO_KEY
+column_create Values output COLUMN_SCALAR Int8
+
+load --table Values
+[
+{"output": -14}
+]
+
+select Values \
+  --filter true \
+  --scorer 'output >>= 2' \
+  --output_columns 'output'
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index