mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-09 02:54:49 +00:00
Improve quality of decision tree newtype unwrap gen test
This commit is contained in:
parent
1acb7e0748
commit
929a00e73d
1 changed files with 9 additions and 5 deletions
|
|
@ -1812,12 +1812,16 @@ fn issue_3560_nested_tag_constructor_is_newtype() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
when Wrapper (Payload "err") is
|
f : _ -> u8
|
||||||
Wrapper (Payload str) -> str
|
f = \t ->
|
||||||
Wrapper (AlternatePayload str) -> str
|
when t is
|
||||||
|
Wrapper (Payload it) -> it
|
||||||
|
Wrapper (AlternatePayload it) -> it
|
||||||
|
|
||||||
|
{a: f (Wrapper (Payload 15u8)), b: f(Wrapper (AlternatePayload 31u8))}
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
RocStr::from("err"),
|
(15, 31),
|
||||||
RocStr
|
(u8, u8)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue