test suite test sequence matcher
matcher[character, string] make matcher(function[boolean, character] the predicate)
return procedure matcher[character, string] • new(repeat element[character] • new(the predicate, false), as string)
test case test match parse()
list[pattern[character]] patterns list : base list[pattern[character]] • new(make matcher(match a), make matcher(match b), make matcher(match c))
assert the matcher("abc")
assert the matcher("AbC")
assert the matcher("AaaBbCcc")
assert the matcher("AaaBBBCcc")
assert !the matcher("bac")
assert !the matcher("aabb")
assert !the matcher("aaca")
assert the matcher • parse("abc") == "-a-b-c"
assert the matcher • parse("AbC") == "-A-b-C"
assert the matcher • parse("AaaBbCcc") == "-Aaa-Bb-Ccc"
assert the matcher • parse("AaaBBBCcc") == "-Aaa-BBB-Ccc"