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); 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 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); let mut path = file.with_file_name(executable_filename);
path.set_extension("wasm"); path.set_extension("wasm");

View file

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