Skip to content

Commit

Permalink
Fix extras test
Browse files Browse the repository at this point in the history
  • Loading branch information
evhub committed Nov 26, 2023
1 parent 4c50275 commit 84cc54f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coconut/tests/src/extras.coco
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ cannot reassign type variable 'T' (use explicit '\T' syntax if intended) (line 1

assert_raises(-> parse("$"), CoconutParseError)
assert_raises(-> parse("@"), CoconutParseError)
assert_raises(-> parse("range(1,10) |> reduce$(*, initializer = 1000) |> print"), CoconutParseError, err_has=" \\~~~~~~~~~~~~~~~~~~~~~~~^")
assert_raises(-> parse("range(1,10) |> reduce$(*, initializer = 1000) |> print"), CoconutParseError, err_has=(
" \\~~~~~~~~~~~~~~~~~~~~~~~^",
" \\~~~~~~~~~~~~^",
))
assert_raises(-> parse("a := b"), CoconutParseError, err_has=" \\~^")
assert_raises(-> parse("1 + return"), CoconutParseError, err_has=" \\~~~~^")
assert_raises(-> parse("""
Expand Down

0 comments on commit 84cc54f

Please sign in to comment.