Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #865 from komainu8/fix_negative_lookahead_result
Browse files Browse the repository at this point in the history
regexp test: add a test for negative lookahead

Patch by Yasuhiro Horimoto. Thanks!!!
  • Loading branch information
kou committed Sep 3, 2018
2 parents 39cdf48 + 50b7700 commit b69ab7e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
@@ -0,0 +1,44 @@
table_create Memos TABLE_HASH_KEY ShortText
[[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"
]
]
]
]
@@ -0,0 +1,8 @@
table_create Memos TABLE_HASH_KEY ShortText
column_create Memos content COLUMN_SCALAR ShortText
load --table Memos
[
{"_key": "1", "content": "Groonga"},
{"_key": "2", "content": "mruby"}
]
select Memos --filter 'content @~ "^(?!.*Groonga).*$\"'

0 comments on commit b69ab7e

Please sign in to comment.