test suite test sequence pattern
sequence pattern[character] make pattern()
sequence pattern[character] make pattern2()
test case test match()
assert the pattern("abc")
assert the pattern("AC")
assert the pattern("AaaCcc")
assert the pattern("AaaBBBCcc")
assert !the pattern("bac")
assert !the pattern("aabb")
assert !the pattern("aaca")
test case test viable prefix()
assert the pattern • is viable prefix("")
assert the pattern • is viable prefix("a")
assert the pattern • is viable prefix("aAa")
assert the pattern • is viable prefix("aabb")
assert the pattern • is viable prefix("aacc")
assert the pattern • is viable prefix("aaBcc")
assert !the pattern • is viable prefix("x")
assert !the pattern • is viable prefix("xyz")
assert !the pattern • is viable prefix("bbb")
assert !the pattern • is viable prefix("bcc")
assert !the pattern • is viable prefix("Ccc")
assert the pattern2 • is viable prefix("")
assert the pattern2 • is viable prefix("a")
assert the pattern2 • is viable prefix("aAa")
assert the pattern2 • is viable prefix("aabb")
assert the pattern2 • is viable prefix("aaBcc")
assert !the pattern2 • is viable prefix("x")
assert !the pattern2 • is viable prefix("xyz")
assert !the pattern2 • is viable prefix("bbb")
assert !the pattern2 • is viable prefix("bcc")
assert !the pattern2 • is viable prefix("Ccc")
test case test match prefix()
assert the pattern • match prefix("abc") == 3
assert the pattern • match prefix("abcdef") == 3
assert the pattern • match prefix("aAbBcCdef") == 6
assert the pattern • match prefix("aAbCdef") == 4
assert the pattern • match prefix("aaabbbcccddd") == 9
test case test find first()
test case test find first more()
test case test split()
assert split0 • size == 1
assert equals(split0[0], "foo")
assert split1 • size == 3
assert equals(split1[0], "foo")
assert equals(split1[1], "xyz")
assert equals(split1[2], "")
assert split2 • size == 4
assert equals(split2[0], "")
assert equals(split2[1], "1")
assert equals(split2[2], "2")
assert equals(split2[3], "3")