Add failing string tests
This commit is contained in:
@@ -239,6 +239,8 @@ when isMainModule:
|
|||||||
# Mismatch
|
# Mismatch
|
||||||
assert testParser123.flatMap(ch('2')).error().kind == charMismatchErr
|
assert testParser123.flatMap(ch('2')).error().kind == charMismatchErr
|
||||||
assert testParser123.flatMap(ch(Letters)).error().kind == charMismatchErr
|
assert testParser123.flatMap(ch(Letters)).error().kind == charMismatchErr
|
||||||
|
assert testParser123.flatMap(str("1234")).error().kind == endOfStringErr
|
||||||
|
assert testParser123.flatMap(str("456")).error().kind == charMismatchErr
|
||||||
|
|
||||||
# Out of bounds
|
# Out of bounds
|
||||||
# assert initParserResult("").flatMap(ch1).error().kind == endOfStringErr
|
# assert initParserResult("").flatMap(ch1).error().kind == endOfStringErr
|
||||||
|
|||||||
Reference in New Issue
Block a user