summaryrefslogtreecommitdiffstats
path: root/vendor/regex-automata/tests/data/misc.toml
blob: c05418dd62f91858cdcacf8443b71e95da15da5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[[tests]]
name = "ascii-literal"
regex = "a"
input = "a"
matches = [[0, 1]]

[[tests]]
name = "ascii-literal-not"
regex = "a"
input = "z"
matches = []

[[tests]]
name = "ascii-literal-anchored"
regex = "a"
input = "a"
matches = [[0, 1]]
anchored = true

[[tests]]
name = "ascii-literal-anchored-not"
regex = "a"
input = "z"
matches = []
anchored = true

[[tests]]
name = "anchor-start-end-line"
regex = '(?m)^bar$'
input = "foo\nbar\nbaz"
matches = [[4, 7]]

[[tests]]
name = "prefix-literal-match"
regex = '^abc'
input = "abc"
matches = [[0, 3]]

[[tests]]
name = "prefix-literal-match-ascii"
regex = '^abc'
input = "abc"
matches = [[0, 3]]
unicode = false
utf8 = false

[[tests]]
name = "prefix-literal-no-match"
regex = '^abc'
input = "zabc"
matches = []

[[tests]]
name = "one-literal-edge"
regex = 'abc'
input = "xxxxxab"
matches = []

[[tests]]
name = "terminates"
regex = 'a$'
input = "a"
matches = [[0, 1]]

[[tests]]
name = "suffix-100"
regex = '.*abcd'
input = "abcd"
matches = [[0, 4]]

[[tests]]
name = "suffix-200"
regex = '.*(?:abcd)+'
input = "abcd"
matches = [[0, 4]]

[[tests]]
name = "suffix-300"
regex = '.*(?:abcd)+'
input = "abcdabcd"
matches = [[0, 8]]

[[tests]]
name = "suffix-400"
regex = '.*(?:abcd)+'
input = "abcdxabcd"
matches = [[0, 9]]

[[tests]]
name = "suffix-500"
regex = '.*x(?:abcd)+'
input = "abcdxabcd"
matches = [[0, 9]]

[[tests]]
name = "suffix-600"
regex = '[^abcd]*x(?:abcd)+'
input = "abcdxabcd"
matches = [[4, 9]]