mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-04 00:55:00 +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!(
|
||||
indoc!(
|
||||
r#"
|
||||
when Wrapper (Payload "err") is
|
||||
Wrapper (Payload str) -> str
|
||||
Wrapper (AlternatePayload str) -> str
|
||||
f : _ -> u8
|
||||
f = \t ->
|
||||
when t is
|
||||
Wrapper (Payload it) -> it
|
||||
Wrapper (AlternatePayload it) -> it
|
||||
|
||||
{a: f (Wrapper (Payload 15u8)), b: f(Wrapper (AlternatePayload 31u8))}
|
||||
"#
|
||||
),
|
||||
RocStr::from("err"),
|
||||
RocStr
|
||||
(15, 31),
|
||||
(u8, u8)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue