mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add derive test for List of strings
This commit is contained in:
parent
5b833e57b5
commit
42ddcb70df
1 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue