mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Fix deriving of hash ability for recursive tag unions
This commit is contained in:
parent
02b02901bc
commit
2517695ce4
4 changed files with 25 additions and 8 deletions
|
@ -1568,7 +1568,6 @@ mod hash {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "TODO"]
|
||||
fn hash_recursive_tag_union() {
|
||||
assert_evals_to!(
|
||||
&format!(
|
||||
|
@ -1591,7 +1590,11 @@ mod hash {
|
|||
),
|
||||
TEST_HASHER,
|
||||
),
|
||||
RocList::from_slice(&[0]),
|
||||
RocList::from_slice(&[
|
||||
0, 0, 1, // Cons 1
|
||||
0, 0, 2, // Cons 2
|
||||
1, 0, // Nil
|
||||
]),
|
||||
RocList<u8>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue