[Groonga-commit] groonga/groonga at 3b296ef [master] test: add test for "cast_loose"

Back to archive index
Yasuhiro Horimoto null+****@clear*****
Thu Oct 11 09:27:00 JST 2018


Yasuhiro Horimoto	2018-10-11 09:27:00 +0900 (Thu, 11 Oct 2018)

  Revision: 3b296ef3186bbae2fe130be9804394bb53af9381
  https://github.com/groonga/groonga/commit/3b296ef3186bbae2fe130be9804394bb53af9381

  Merged 6414161: Merge pull request #875 from komainu8/add_cast_loose

  Message:
    test: add test for "cast_loose"

  Added files:
    test/command/suite/select/function/cast_loose/number_only.expected
    test/command/suite/select/function/cast_loose/number_only.test

  Added: test/command/suite/select/function/cast_loose/number_only.expected (+36 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/function/cast_loose/number_only.expected    2018-10-11 09:27:00 +0900 (393418c71)
@@ -0,0 +1,36 @@
+table_create Memos TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+load --table Memos
+[
+{"_key": "100"}
+]
+[[0,0.0,0.0],1]
+select Memos   --output_columns '_key, cast_loose(Int64, _key, 0)'
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        1
+      ],
+      [
+        [
+          "_key",
+          "ShortText"
+        ],
+        [
+          "cast_loose",
+          null
+        ]
+      ],
+      [
+        "100",
+        100
+      ]
+    ]
+  ]
+]

  Added: test/command/suite/select/function/cast_loose/number_only.test (+6 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/function/cast_loose/number_only.test    2018-10-11 09:27:00 +0900 (3c7aadf67)
@@ -0,0 +1,6 @@
+table_create Memos TABLE_HASH_KEY ShortText
+load --table Memos
+[
+{"_key": "100"}
+]
+select Memos   --output_columns '_key, cast_loose(Int64, _key, 0)'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181011/6189be4e/attachment-0001.html>


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