26 lines
410 B
TOML
26 lines
410 B
TOML
[[test]]
|
|
name = "alt"
|
|
regex = 'foo|foobar'
|
|
haystack = "foobar"
|
|
matches = [[0, 6]]
|
|
match-kind = "all"
|
|
search-kind = "leftmost"
|
|
|
|
[[test]]
|
|
name = "multi"
|
|
regex = ['foo', 'foobar']
|
|
haystack = "foobar"
|
|
matches = [
|
|
{ id = 1, span = [0, 6] },
|
|
]
|
|
match-kind = "all"
|
|
search-kind = "leftmost"
|
|
|
|
[[test]]
|
|
name = "dotall"
|
|
regex = '(?s:.)'
|
|
haystack = "foobar"
|
|
matches = [[5, 6]]
|
|
match-kind = "all"
|
|
search-kind = "leftmost"
|