mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Apply suggestions from code review
Reuse some variables in tests. Signed-off-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
parent
5c24972a2a
commit
45cf580031
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ mod specialize_structs {
|
|||
|
||||
expect_mono_expr_str(
|
||||
format!("if {cond} then {then} else {else_}"),
|
||||
format!("If(`Bool.true` -> Number(I8(42))), Number(I8(0)))"),
|
||||
format!("If(`{cond}` -> Number(I8({then}))), Number(I8({else_})))"),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ mod specialize_structs {
|
|||
|
||||
expect_mono_expr_str(
|
||||
format!("if {cond1} then {then1} else if {cond2} then {then2} else {then_else}"),
|
||||
format!("If(`Bool.false` -> Number(I16(256))), `Bool.true` -> Number(I16(24))), Number(I16(0)))"),
|
||||
format!("If(`{cond1}` -> Number(I16({then1}))), `{cond2}` -> Number(I16({then2}))), Number(I16({then_else})))"),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue