Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
52
third-party/vendor/regex/testdata/earliest.toml
vendored
Normal file
52
third-party/vendor/regex/testdata/earliest.toml
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
[[test]]
|
||||
name = "no-greedy-100"
|
||||
regex = 'a+'
|
||||
haystack = "aaa"
|
||||
matches = [[0, 1], [1, 2], [2, 3]]
|
||||
search-kind = "earliest"
|
||||
|
||||
[[test]]
|
||||
name = "no-greedy-200"
|
||||
regex = 'abc+'
|
||||
haystack = "zzzabccc"
|
||||
matches = [[3, 6]]
|
||||
search-kind = "earliest"
|
||||
|
||||
[[test]]
|
||||
name = "is-ungreedy"
|
||||
regex = 'a+?'
|
||||
haystack = "aaa"
|
||||
matches = [[0, 1], [1, 2], [2, 3]]
|
||||
search-kind = "earliest"
|
||||
|
||||
[[test]]
|
||||
name = "look-start-test"
|
||||
regex = '^(abc|a)'
|
||||
haystack = "abc"
|
||||
matches = [
|
||||
[[0, 1], [0, 1]],
|
||||
]
|
||||
search-kind = "earliest"
|
||||
|
||||
[[test]]
|
||||
name = "look-end-test"
|
||||
regex = '(abc|a)$'
|
||||
haystack = "abc"
|
||||
matches = [
|
||||
[[0, 3], [0, 3]],
|
||||
]
|
||||
search-kind = "earliest"
|
||||
|
||||
[[test]]
|
||||
name = "no-leftmost-first-100"
|
||||
regex = 'abc|a'
|
||||
haystack = "abc"
|
||||
matches = [[0, 1]]
|
||||
search-kind = "earliest"
|
||||
|
||||
[[test]]
|
||||
name = "no-leftmost-first-200"
|
||||
regex = 'aba|a'
|
||||
haystack = "aba"
|
||||
matches = [[0, 1], [2, 3]]
|
||||
search-kind = "earliest"
|
||||
Loading…
Add table
Add a link
Reference in a new issue