[Groonga-commit] groonga/groonga [support-numeric-arithmetic-operations-for-small-value-types] Add a test for binary assign operation for Int8 type

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Fri Mar 1 13:45:33 JST 2013


Kouhei Sutou	2013-03-01 13:45:33 +0900 (Fri, 01 Mar 2013)

  New Revision: 05c8a3bd5a9e7489f6c676542376ea04993123f3
  https://github.com/groonga/groonga/commit/05c8a3bd5a9e7489f6c676542376ea04993123f3

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

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

  Added: test/command/suite/select/operation/shift_l_assign/int8.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_l_assign/int8.expected    2013-03-01 13:45:33 +0900 (65ad3a3)
@@ -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"]],[-56]]]]

  Added: test/command/suite/select/operation/shift_l_assign/int8.test (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_l_assign/int8.test    2013-03-01 13:45:33 +0900 (167ed5c)
@@ -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
アーカイブの一覧に戻る