mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Improve test
This commit is contained in:
parent
ffa2ba1043
commit
1ed2e1a8e9
1 changed files with 10 additions and 11 deletions
|
@ -3607,21 +3607,20 @@ fn multimorphic_lambdas_have_captured_function_in_closure() {
|
|||
b -> b {}
|
||||
thunk
|
||||
|
||||
f = \_ -> \_ -> ""
|
||||
f = \_ -> \_ -> "fun f"
|
||||
g = \{ s1 } -> \_ -> s1
|
||||
|
||||
x : [True, False]
|
||||
x = False
|
||||
fun = \x ->
|
||||
h =
|
||||
when x is
|
||||
True -> after (\{} -> "") f
|
||||
False -> after (\{} -> {s1: "s1"}) g
|
||||
h {}
|
||||
|
||||
fun =
|
||||
when x is
|
||||
True -> after (\{} -> "") f
|
||||
False -> after (\{} -> {s1: "s1"}) g
|
||||
|
||||
fun {}
|
||||
{a: fun False, b: fun True}
|
||||
"#
|
||||
),
|
||||
RocStr::from("s1"),
|
||||
RocStr
|
||||
(RocStr::from("s1"), RocStr::from("fun f")),
|
||||
(RocStr, RocStr)
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue