Fix deriving of hash ability for recursive tag unions

This commit is contained in:
Ayaz Hafiz 2022-10-05 12:01:02 -05:00
parent 02b02901bc
commit 2517695ce4
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 25 additions and 8 deletions

View file

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