Improve test

This commit is contained in:
ayazhafiz 2022-06-28 22:16:48 -04:00
parent ffa2ba1043
commit 1ed2e1a8e9
No known key found for this signature in database
GPG key ID: B443F7A3030C9AED

View file

@ -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)
)
}