test suite test option matcher
private boolean match a(character c) pure
return c == 'a' || c == 'A'
private boolean match b(character c) pure
return c == 'b' || c == 'B'
private boolean match c(character c) pure
return c == 'c' || c == 'C'
private string as string(readonly list[character] char list)
return "*" ++ (char listfrozen copy() !> string)
test case test match parse()
the matcher : option matcher[character, string] • new(matchers)
the matchervalidate()
assert the matcher("a")
assert the matcher("Bbb")
assert the matcher("Cccc")
assert !the matcher("abc")
assert !the matcher("aabb")
assert !the matcher("aaca")
assert the matcherparse("aaa") == "*aaa"
assert the matcherparse("Bbb") == "*Bbb"
assert the matcherparse("CCCccc") == "*CCCccc"