• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[[tests]]
2name = "iter1"
3pattern = "a"
4input = "aaa"
5matches = [[0, 1], [1, 2], [2, 3]]
6
7[[tests]]
8name = "iter2"
9pattern = "a"
10input = "aba"
11matches = [[0, 1], [2, 3]]
12
13[[tests]]
14name = "iter-empty1"
15pattern = ''
16input = ''
17matches = [[0, 0]]
18
19[[tests]]
20name = "iter-empty2"
21pattern = ''
22input = 'abc'
23matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
24
25[[tests]]
26name = "iter-empty3"
27pattern = '()'
28input = 'abc'
29matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
30
31[[tests]]
32name = "iter-empty4"
33pattern = '()*'
34input = 'abc'
35matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
36
37[[tests]]
38name = "iter-empty5"
39pattern = '()+'
40input = 'abc'
41matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
42
43[[tests]]
44name = "iter-empty6"
45pattern = '()?'
46input = 'abc'
47matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
48
49[[tests]]
50name = "iter-empty7"
51pattern = '()()'
52input = 'abc'
53matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
54
55[[tests]]
56name = "iter-empty8"
57pattern = '()+|z'
58input = 'abc'
59matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
60
61[[tests]]
62name = "iter-empty9"
63pattern = 'z|()+'
64input = 'abc'
65matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
66
67[[tests]]
68name = "iter-empty10"
69pattern = '()+|b'
70input = 'abc'
71matches = [[0, 0], [1, 1], [2, 2], [3, 3]]
72
73[[tests]]
74name = "iter-empty11"
75pattern = 'b|()+'
76input = 'abc'
77matches = [[0, 0], [1, 2], [3, 3]]
78
79
80[[tests]]
81options = ["anchored"]
82name = "iter-anchored1"
83pattern = "a"
84input = "a"
85matches = [[0, 1]]
86
87[[tests]]
88options = ["anchored"]
89name = "iter-anchored2"
90pattern = "a"
91input = "aa"
92matches = [[0, 1]]
93