Skip to content

Commit

Permalink
Additional test also with over-saturated argument
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Aug 23, 2023
1 parent 4105f51 commit 735c691
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Tests/src/Semantic/Error_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,9 @@ spec =
r . should_fail_with Type_Error
r.to_display_text.contains "Try to apply x, y arguments" . should_be_true

Test.specify "try to apply two arguments with over-saturated" <|
r = Panic.recover Type_Error <| neg (my_func z=10)
r . should_fail_with Type_Error
r.to_display_text.contains "Try to apply x, y arguments" . should_be_true

main = Test_Suite.run_main spec

0 comments on commit 735c691

Please sign in to comment.