Add derive test for List of strings

This commit is contained in:
Ayaz Hafiz 2022-10-04 14:08:53 -05:00
parent 5b833e57b5
commit 42ddcb70df
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1306,4 +1306,13 @@ mod hash_immediate {
RocList<u8> RocList<u8>
) )
} }
#[test]
fn list_string() {
assert_evals_to!(
&build_test(r#"["ab", "cd", "ef"]"#),
RocList::from_slice(&[97, 98, 99, 100, 101, 102]),
RocList<u8>
)
}
} }