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