mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
update all examples to basic-cli version and mark broken examples
This commit is contained in:
parent
f727aea875
commit
ffda01e80b
9 changed files with 55 additions and 48 deletions
|
@ -474,18 +474,6 @@ mod cli_run {
|
|||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial(cli_platform)]
|
||||
#[cfg_attr(windows, ignore)]
|
||||
fn hello_world_no_url() {
|
||||
test_roc_app_slim(
|
||||
"examples",
|
||||
"helloWorldNoURL.roc",
|
||||
"Hello, World!\n",
|
||||
UseValgrind::Yes,
|
||||
)
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
const LINE_ENDING: &str = "\r\n";
|
||||
#[cfg(not(windows))]
|
||||
|
@ -687,12 +675,13 @@ mod cli_run {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "currently broken in basic-cli platform"]
|
||||
#[cfg_attr(windows, ignore = "missing __udivdi3 and some other symbols")]
|
||||
#[serial(cli_platform)]
|
||||
fn cli_args() {
|
||||
test_roc_app(
|
||||
"examples/cli",
|
||||
"args.roc",
|
||||
"argsBROKEN.roc",
|
||||
&[],
|
||||
&[
|
||||
Arg::PlainText("log"),
|
||||
|
@ -713,7 +702,7 @@ mod cli_run {
|
|||
#[cfg_attr(windows, ignore = "missing __udivdi3 and some other symbols")]
|
||||
#[serial(cli_platform)]
|
||||
fn cli_args_check() {
|
||||
let path = file_path_from_root("examples/cli", "args.roc");
|
||||
let path = file_path_from_root("examples/cli", "argsBROKEN.roc");
|
||||
let out = run_roc([CMD_CHECK, path.to_str().unwrap()], &[], &[]);
|
||||
assert!(out.status.success());
|
||||
}
|
||||
|
@ -866,7 +855,7 @@ mod cli_run {
|
|||
&[],
|
||||
&[],
|
||||
&[],
|
||||
"22424\n",
|
||||
"30256\n",
|
||||
UseValgrind::No,
|
||||
TestCliCommands::Run,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue