summaryrefslogtreecommitdiffstats
path: root/vendor/regex/testdata/leftmost-all.toml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/regex/testdata/leftmost-all.toml')
-rw-r--r--vendor/regex/testdata/leftmost-all.toml25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/regex/testdata/leftmost-all.toml b/vendor/regex/testdata/leftmost-all.toml
new file mode 100644
index 000000000..e3fd950b6
--- /dev/null
+++ b/vendor/regex/testdata/leftmost-all.toml
@@ -0,0 +1,25 @@
+[[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"