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

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Fri Mar 1 13:54:44 JST 2013


Kouhei Sutou	2013-03-01 13:54:44 +0900 (Fri, 01 Mar 2013)

  New Revision: 3c0a20bd9f874104ac036515fdb3c3117c6678d7
  https://github.com/groonga/groonga/commit/3c0a20bd9f874104ac036515fdb3c3117c6678d7

  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_rr_assign/int8.expected
    test/command/suite/select/operation/shift_rr_assign/int8.test

  Added: test/command/suite/select/operation/shift_rr_assign/int8.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_rr_assign/int8.expected    2013-03-01 13:54:44 +0900 (5f0d8c0)
@@ -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"]],[60]]]]

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