Use closure syntax in parentheses in False.roc

This commit is contained in:
Joshua Warner 2022-11-09 18:48:06 -05:00
parent 1753c9cf5b
commit cdbdfeeaa4
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
2 changed files with 22 additions and 12 deletions

View file

@ -129,7 +129,12 @@ mod cli_run {
panic!("`roc` command had unexpected stderr: {}", stderr);
}
assert!(compile_out.status.success(), "bad status {:?}", compile_out);
assert!(
compile_out.status.success(),
"bad status stderr:\n{}\nstdout:\n{}",
compile_out.stderr,
compile_out.stdout
);
compile_out
}
@ -798,7 +803,12 @@ mod cli_run {
&[],
);
assert!(compile_out.status.success(), "bad status {:?}", compile_out);
assert!(
compile_out.status.success(),
"bad status stderr:\n{}\nstdout:\n{}",
compile_out.stderr,
compile_out.stdout
);
let mut path = file.with_file_name(executable_filename);
path.set_extension("wasm");

View file

@ -437,7 +437,7 @@ stepExecCtx = \ctx, char ->
# `=` equals
Task.fromResult
(
a, b <- binaryOp ctx
binaryOp ctx \a, b ->
if a == b then
-1
else
@ -448,7 +448,7 @@ stepExecCtx = \ctx, char ->
# `>` greater than
Task.fromResult
(
a, b <- binaryOp ctx
binaryOp ctx \a, b ->
if a > b then
-1
else