Skip to content

Commit

Permalink
Add module_params_pass_task test
Browse files Browse the repository at this point in the history
  • Loading branch information
agu-z committed Sep 1, 2024
1 parent 9ce5b8b commit e4079cc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
19 changes: 19 additions & 0 deletions crates/cli/tests/cli_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,25 @@ mod cli_run {
);
}

#[test]
#[cfg_attr(windows, ignore)]
fn module_params_pass_task() {
test_roc_app(
"crates/cli/tests/module_params",
"pass_task.roc",
&[],
&[],
&[],
indoc!(
r#"
Hi, Agus!
"#
),
UseValgrind::No,
TestCliCommands::Run,
);
}

#[test]
#[cfg_attr(windows, ignore)]
fn transitive_expects() {
Expand Down
7 changes: 7 additions & 0 deletions crates/cli/tests/module_params/Menu.roc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module { echo } -> [menu]

menu = \name ->
indirect name

indirect = \name ->
echo "Hi, $(name)!"
7 changes: 7 additions & 0 deletions crates/cli/tests/module_params/pass_task.roc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" }

import pf.Stdout
import Menu { echo: Stdout.line }

main =
Menu.menu "Agus"

0 comments on commit e4079cc

Please sign in to comment.