mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-25 04:52:32 +00:00
Use closure syntax in parentheses in False.roc
This commit is contained in:
parent
1753c9cf5b
commit
cdbdfeeaa4
2 changed files with 22 additions and 12 deletions
|
@ -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");
|
||||||
|
|
|
@ -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 ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue