Skip to content

Commit 18b6b71

Browse files
committed
test TryPureScript example
1 parent 6dc1e9c commit 18b6b71

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/Main.purs

+11
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,17 @@ main = do
11451145
, expected: [ "Expected letter at position index:6 (line:2, column:1)", "", "🍷bbbb" ]
11461146
}
11471147

1148+
do
1149+
let input = "aCaB"
1150+
assertEqual' "parseErrorHuman ayebee"
1151+
{ actual: parseErrorHuman input 20 $ fromLeft (ParseError "" initialPos)
1152+
$ runParser input do
1153+
_ <- char 'a'
1154+
b <- char 'b' <|> char 'B'
1155+
pure (b == 'B')
1156+
, expected: [ "Expected 'B' at position index:1 (line:1, column:2)", "", input ]
1157+
}
1158+
11481159
log "\nTESTS recursion"
11491160

11501161
do

0 commit comments

Comments
 (0)