[[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]]
