mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +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 {}
|
b -> b {}
|
||||||
thunk
|
thunk
|
||||||
|
|
||||||
f = \_ -> \_ -> ""
|
f = \_ -> \_ -> "fun f"
|
||||||
g = \{ s1 } -> \_ -> s1
|
g = \{ s1 } -> \_ -> s1
|
||||||
|
|
||||||
x : [True, False]
|
fun = \x ->
|
||||||
x = False
|
h =
|
||||||
|
when x is
|
||||||
|
True -> after (\{} -> "") f
|
||||||
|
False -> after (\{} -> {s1: "s1"}) g
|
||||||
|
h {}
|
||||||
|
|
||||||
fun =
|
{a: fun False, b: fun True}
|
||||||
when x is
|
|
||||||
True -> after (\{} -> "") f
|
|
||||||
False -> after (\{} -> {s1: "s1"}) g
|
|
||||||
|
|
||||||
fun {}
|
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
RocStr::from("s1"),
|
(RocStr::from("s1"), RocStr::from("fun f")),
|
||||||
RocStr
|
(RocStr, RocStr)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue