This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test exception thrown by function calls using named and unamed args
- Loading branch information
1 parent
3f47f2d
commit 603ed6b
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/test/resources/for-execution/failure-function-call-with-named-and-unamed-args.golo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module golotest.execution.FunctionCallWithNamedAndUnamedArgs | ||
|
||
function create_post = |author, title, content| -> author + " " + title + " " + content | ||
|
||
function create_post_mixing_named_and_unamed_args = -> create_post("Lorem Ipsum", "Awesome Post", author = "John") | ||
|