Add module_params_pass_task test

This commit is contained in:
Agus Zubiaga 2024-09-01 19:18:07 -03:00
parent 9ce5b8b50b
commit e4079ccb11
No known key found for this signature in database
3 changed files with 33 additions and 0 deletions

View file

@ -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() {

View file

@ -0,0 +1,7 @@
module { echo } -> [menu]
menu = \name ->
indirect name
indirect = \name ->
echo "Hi, $(name)!"

View file

@ -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"