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

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Mar 2 15:20:19 JST 2013


Kouhei Sutou	2013-03-02 15:20:19 +0900 (Sat, 02 Mar 2013)

  New Revision: 7da350504e286ed8a67fd4c654d569c7e2207a1b
  https://github.com/groonga/groonga/commit/7da350504e286ed8a67fd4c654d569c7e2207a1b

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

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

  Added: test/command/suite/select/operation/shift_l_assign/uint8.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_l_assign/uint8.expected    2013-03-02 15:20:19 +0900 (f75c2bf)
@@ -0,0 +1,11 @@
+table_create Values TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Values output COLUMN_SCALAR UInt8
+[[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","UInt8"]],[56]]]]

  Added: test/command/suite/select/operation/shift_l_assign/uint8.test (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_l_assign/uint8.test    2013-03-02 15:20:19 +0900 (0f9e548)
@@ -0,0 +1,12 @@
+table_create Values TABLE_NO_KEY
+column_create Values output COLUMN_SCALAR UInt8
+
+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