[Groonga-commit] groonga/groonga at 735aa46 [master] test: fix test

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Sep 3 13:56:22 JST 2018


Kouhei Sutou	2018-09-03 13:56:22 +0900 (Mon, 03 Sep 2018)

  Revision: 735aa46d9a102a0a5c7562e178b9865314ffc1ec
  https://github.com/groonga/groonga/commit/735aa46d9a102a0a5c7562e178b9865314ffc1ec

  Message:
    test: fix test
    
    There are no problem in this case.

  Modified files:
    test/command/suite/select/filter/regexp/negative_lookahead.expected
    test/command/suite/select/filter/regexp/negative_lookahead.test

  Modified: test/command/suite/select/filter/regexp/negative_lookahead.expected (+7 -38)
===================================================================
--- test/command/suite/select/filter/regexp/negative_lookahead.expected    2018-09-03 12:37:45 +0900 (2184e1b49)
+++ test/command/suite/select/filter/regexp/negative_lookahead.expected    2018-09-03 13:56:22 +0900 (c45492e6b)
@@ -1,44 +1,13 @@
-table_create Memos TABLE_HASH_KEY ShortText
+table_create Memos TABLE_NO_KEY
 [[0,0.0,0.0],true]
 column_create Memos content COLUMN_SCALAR ShortText
 [[0,0.0,0.0],true]
 load --table Memos
 [
-{"_key": "1", "content": "Groonga"},
-{"_key": "2", "content": "mruby"}
-]
-[[0,0.0,0.0],2]
-select Memos --filter 'content @~ "(?!Groonga).+"'
-[
-  [
-    0,
-    0.0,
-    0.0
-  ],
-  [
-    [
-      [
-        1
-      ],
-      [
-        [
-          "_id",
-          "UInt32"
-        ],
-        [
-          "_key",
-          "ShortText"
-        ],
-        [
-          "content",
-          "ShortText"
-        ]
-      ],
-      [
-        2,
-        "2",
-        "mruby"
-      ]
-    ]
-  ]
+{"content": "Groonga"},
+{"content": "groonga"},
+{"content": "mruby"}
 ]
+[[0,0.0,0.0],3]
+select Memos --filter 'content @~ "\\\\A(?!groonga).+\\\\z"'
+[[0,0.0,0.0],[[[1],[["_id","UInt32"],["content","ShortText"]],[3,"mruby"]]]]

  Modified: test/command/suite/select/filter/regexp/negative_lookahead.test (+5 -4)
===================================================================
--- test/command/suite/select/filter/regexp/negative_lookahead.test    2018-09-03 12:37:45 +0900 (6c3018428)
+++ test/command/suite/select/filter/regexp/negative_lookahead.test    2018-09-03 13:56:22 +0900 (488f95542)
@@ -1,8 +1,9 @@
-table_create Memos TABLE_HASH_KEY ShortText
+table_create Memos TABLE_NO_KEY
 column_create Memos content COLUMN_SCALAR ShortText
 load --table Memos
 [
-{"_key": "1", "content": "Groonga"},
-{"_key": "2", "content": "mruby"}
+{"content": "Groonga"},
+{"content": "groonga"},
+{"content": "mruby"}
 ]
-select Memos --filter 'content @~ "(?!Groonga).+"'
+select Memos --filter 'content @~ "\\\\A(?!groonga).+\\\\z"'
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180903/8322ef25/attachment-0001.htm 



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