[Groonga-commit] groonga/groonga at 2a6d7b1 [master] test: add a test for bitwise not against UInt32

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 13 22:43:53 JST 2015


Kouhei Sutou	2015-08-13 22:43:53 +0900 (Thu, 13 Aug 2015)

  New Revision: 2a6d7b100539e0bfd669d76c7478b17e6a7a2c04
  https://github.com/groonga/groonga/commit/2a6d7b100539e0bfd669d76c7478b17e6a7a2c04

  Message:
    test: add a test for bitwise not against UInt32

  Added files:
    test/command/suite/select/filter/arithmetic_operation/bitwise_not/uint32.expected
    test/command/suite/select/filter/arithmetic_operation/bitwise_not/uint32.test

  Added: test/command/suite/select/filter/arithmetic_operation/bitwise_not/uint32.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/filter/arithmetic_operation/bitwise_not/uint32.expected    2015-08-13 22:43:53 +0900 (a52f07b)
@@ -0,0 +1,11 @@
+table_create Values TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Values value COLUMN_SCALAR UInt32
+[[0,0.0,0.0],true]
+load --table Values
+[
+{"value": 5}
+]
+[[0,0.0,0.0],1]
+select Values   --filter 'true'   --scorer '_score = ~value'   --output_columns 'value, _score'
+[[0,0.0,0.0],[[[1],[["value","UInt32"],["_score","Int32"]],[5,-6]]]]

  Added: test/command/suite/select/filter/arithmetic_operation/bitwise_not/uint32.test (+12 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/filter/arithmetic_operation/bitwise_not/uint32.test    2015-08-13 22:43:53 +0900 (30f90bd)
@@ -0,0 +1,12 @@
+table_create Values TABLE_NO_KEY
+column_create Values value COLUMN_SCALAR UInt32
+
+load --table Values
+[
+{"value": 5}
+]
+
+select Values \
+  --filter 'true' \
+  --scorer '_score = ~value' \
+  --output_columns 'value, _score'
-------------- next part --------------
HTML����������������������������...
Download 



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