[Groonga-commit] groonga/groonga at 446c2f5 [master] test: add a test to detect a bug of grn_pat

Back to archive index

susumu.yata null+****@clear*****
Fri Nov 20 10:10:49 JST 2015


susumu.yata	2015-11-20 10:10:49 +0900 (Fri, 20 Nov 2015)

  New Revision: 446c2f54f62838c20e1dba9c1b0082efadf10632
  https://github.com/groonga/groonga/commit/446c2f54f62838c20e1dba9c1b0082efadf10632

  Message:
    test: add a test to detect a bug of grn_pat
    
    GitHub: #432

  Added files:
    test/command/suite/select/output/reference/short_text/vector/default.expected
    test/command/suite/select/output/reference/short_text/vector/default.test

  Added: test/command/suite/select/output/reference/short_text/vector/default.expected (+56 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output/reference/short_text/vector/default.expected    2015-11-20 10:10:49 +0900 (75992db)
@@ -0,0 +1,56 @@
+table_create Tags TABLE_PAT_KEY ShortText
+[[0,0.0,0.0],true]
+table_create Memos TABLE_HASH_KEY ShortText
+[[0,0.0,0.0],true]
+column_create Memos tags COLUMN_VECTOR Tags
+[[0,0.0,0.0],true]
+load --table Memos
+[
+{"_key": "Rroonga", "tags": ["Groonga", "Ruby"]},
+{"_key": "Groonga", "tags": ["Groonga"]},
+{"_key": "Blank", "tags": [""]},
+{"_key": "Nothing"}
+]
+[[0,0.0,0.0],4]
+select Memos --output_columns 'tags'
+[
+  [
+    0,
+    0.0,
+    0.0
+  ],
+  [
+    [
+      [
+        4
+      ],
+      [
+        [
+          "tags",
+          "Tags"
+        ]
+      ],
+      [
+        [
+          "Groonga",
+          "Ruby"
+        ]
+      ],
+      [
+        [
+          "Groonga"
+        ]
+      ],
+      [
+        [
+          ""
+        ]
+      ],
+      [
+        [
+
+        ]
+      ]
+    ]
+  ]
+]

  Added: test/command/suite/select/output/reference/short_text/vector/default.test (+13 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/select/output/reference/short_text/vector/default.test    2015-11-20 10:10:49 +0900 (9b0bfd2)
@@ -0,0 +1,13 @@
+table_create Tags TABLE_PAT_KEY ShortText
+table_create Memos TABLE_HASH_KEY ShortText
+column_create Memos tags COLUMN_VECTOR Tags
+
+load --table Memos
+[
+{"_key": "Rroonga", "tags": ["Groonga", "Ruby"]},
+{"_key": "Groonga", "tags": ["Groonga"]},
+{"_key": "Blank", "tags": [""]},
+{"_key": "Nothing"}
+]
+
+select Memos --output_columns 'tags'
-------------- next part --------------
HTML����������������������������...
Download 



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