[Groonga-commit] groonga/groonga at c99dd57 [master] Add a test for "..." (double quoted) string literal

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Wed Jun 19 17:34:41 JST 2013


Kouhei Sutou	2013-06-19 17:34:41 +0900 (Wed, 19 Jun 2013)

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

  Message:
    Add a test for "..." (double quoted) string literal

  Added files:
    test/command/suite/select/output_columns/expression/literal/string/double_quote.expected
    test/command/suite/select/output_columns/expression/literal/string/double_quote.test

  Added: test/command/suite/select/output_columns/expression/literal/string/double_quote.expected (+38 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output_columns/expression/literal/string/double_quote.expected    2013-06-19 17:34:41 +0900 (d16d71c)
@@ -0,0 +1,38 @@
+table_create Entries TABLE_NO_KEY
+[[0,0.0,0.0],true]
+column_create Entries title COLUMN_SCALAR ShortText
+[[0,0.0,0.0],true]
+load --table Entries
+[
+{"title": "groonga and MySQL"}
+]
+[[0,0.0,0.0],1]
+select Entries   --output_columns '_id, "double quoted" + " " + "string value"'   --command_version 2
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        1
+      ],
+      [
+        [
+          "_id",
+          "UInt32"
+        ],
+        [
+          "",
+          "null"
+        ]
+      ],
+      [
+        1,
+        "double quoted string value"
+      ]
+    ]
+  ]
+]

  Added: test/command/suite/select/output_columns/expression/literal/string/double_quote.test (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output_columns/expression/literal/string/double_quote.test    2013-06-19 17:34:41 +0900 (29f66f0)
@@ -0,0 +1,11 @@
+table_create Entries TABLE_NO_KEY
+column_create Entries title COLUMN_SCALAR ShortText
+
+load --table Entries
+[
+{"title": "groonga and MySQL"}
+]
+
+select Entries \
+  --output_columns '_id, "double quoted" + " " + "string value"' \
+  --command_version 2
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る