| 1 |
[[test]] |
| 2 |
name = "100" |
| 3 |
regex = "|b" |
| 4 |
haystack = "abc" |
| 5 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 6 |
|
| 7 |
[[test]] |
| 8 |
name = "110" |
| 9 |
regex = "b|" |
| 10 |
haystack = "abc" |
| 11 |
matches = [[0, 0], [1, 2], [3, 3]] |
| 12 |
|
| 13 |
[[test]] |
| 14 |
name = "120" |
| 15 |
regex = "|z" |
| 16 |
haystack = "abc" |
| 17 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 18 |
|
| 19 |
[[test]] |
| 20 |
name = "130" |
| 21 |
regex = "z|" |
| 22 |
haystack = "abc" |
| 23 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 24 |
|
| 25 |
[[test]] |
| 26 |
name = "200" |
| 27 |
regex = "|" |
| 28 |
haystack = "abc" |
| 29 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 30 |
|
| 31 |
[[test]] |
| 32 |
name = "210" |
| 33 |
regex = "||" |
| 34 |
haystack = "abc" |
| 35 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 36 |
|
| 37 |
[[test]] |
| 38 |
name = "220" |
| 39 |
regex = "||b" |
| 40 |
haystack = "abc" |
| 41 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 42 |
|
| 43 |
[[test]] |
| 44 |
name = "230" |
| 45 |
regex = "b||" |
| 46 |
haystack = "abc" |
| 47 |
matches = [[0, 0], [1, 2], [3, 3]] |
| 48 |
|
| 49 |
[[test]] |
| 50 |
name = "240" |
| 51 |
regex = "||z" |
| 52 |
haystack = "abc" |
| 53 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 54 |
|
| 55 |
[[test]] |
| 56 |
name = "300" |
| 57 |
regex = "(?:)|b" |
| 58 |
haystack = "abc" |
| 59 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 60 |
|
| 61 |
[[test]] |
| 62 |
name = "310" |
| 63 |
regex = "b|(?:)" |
| 64 |
haystack = "abc" |
| 65 |
matches = [[0, 0], [1, 2], [3, 3]] |
| 66 |
|
| 67 |
[[test]] |
| 68 |
name = "320" |
| 69 |
regex = "(?:|)" |
| 70 |
haystack = "abc" |
| 71 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 72 |
|
| 73 |
[[test]] |
| 74 |
name = "330" |
| 75 |
regex = "(?:|)|z" |
| 76 |
haystack = "abc" |
| 77 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 78 |
|
| 79 |
[[test]] |
| 80 |
name = "400" |
| 81 |
regex = "a(?:)|b" |
| 82 |
haystack = "abc" |
| 83 |
matches = [[0, 1], [1, 2]] |
| 84 |
|
| 85 |
[[test]] |
| 86 |
name = "500" |
| 87 |
regex = "" |
| 88 |
haystack = "" |
| 89 |
matches = [[0, 0]] |
| 90 |
|
| 91 |
[[test]] |
| 92 |
name = "510" |
| 93 |
regex = "" |
| 94 |
haystack = "a" |
| 95 |
matches = [[0, 0], [1, 1]] |
| 96 |
|
| 97 |
[[test]] |
| 98 |
name = "520" |
| 99 |
regex = "" |
| 100 |
haystack = "abc" |
| 101 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 102 |
|
| 103 |
[[test]] |
| 104 |
name = "600" |
| 105 |
regex = '(?:|a)*' |
| 106 |
haystack = "aaa" |
| 107 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |
| 108 |
|
| 109 |
[[test]] |
| 110 |
name = "610" |
| 111 |
regex = '(?:|a)+' |
| 112 |
haystack = "aaa" |
| 113 |
matches = [[0, 0], [1, 1], [2, 2], [3, 3]] |