[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:21:52 JST 2013


Kouhei Sutou	2013-03-02 15:21:52 +0900 (Sat, 02 Mar 2013)

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

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

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

  Added: test/command/suite/select/operation/shift_r_assign/uint8.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_r_assign/uint8.expected    2013-03-02 15:21:52 +0900 (6f78720)
@@ -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"]],[3]]]]

  Added: test/command/suite/select/operation/shift_r_assign/uint8.test (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/operation/shift_r_assign/uint8.test    2013-03-02 15:21:52 +0900 (7dedc80)
@@ -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����������������������������...
Download 



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