Skip to content

Commit

Permalink
add negative test
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Sep 13, 2024
1 parent 0d58b61 commit c0ecdbc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/Parsing/Negative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ parserErrorTests =
$ \case
ErrMegaparsec {} -> Nothing
_ -> wrongError,
negTest
"Missing @ in named application"
$(mkRelDir ".")
$(mkRelFile "NamedApplicationMissingAt.juvix")
$ \case
ErrNamedApplicationMissingAt {} -> Nothing
_ -> wrongError,
negTest
"Error on local instances"
$(mkRelDir ".")
Expand Down
8 changes: 8 additions & 0 deletions tests/negative/NamedApplicationMissingAt.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module NamedApplicationMissingAt;

type T := t;

fun (a : T)
: T := t;

main : T := fun {a := t};

0 comments on commit c0ecdbc

Please sign in to comment.