mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-08 02:26:29 +00:00
Add module_params_pass_task test
This commit is contained in:
parent
9ce5b8b50b
commit
e4079ccb11
3 changed files with 33 additions and 0 deletions
|
|
@ -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]
|
#[test]
|
||||||
#[cfg_attr(windows, ignore)]
|
#[cfg_attr(windows, ignore)]
|
||||||
fn transitive_expects() {
|
fn transitive_expects() {
|
||||||
|
|
|
||||||
7
crates/cli/tests/module_params/Menu.roc
Normal file
7
crates/cli/tests/module_params/Menu.roc
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
module { echo } -> [menu]
|
||||||
|
|
||||||
|
menu = \name ->
|
||||||
|
indirect name
|
||||||
|
|
||||||
|
indirect = \name ->
|
||||||
|
echo "Hi, $(name)!"
|
||||||
7
crates/cli/tests/module_params/pass_task.roc
Normal file
7
crates/cli/tests/module_params/pass_task.roc
Normal 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"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue