1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00

read/write array

This commit is contained in:
Robin Appelman 2021-07-13 19:37:10 +02:00
commit 1fadf092cf
3 changed files with 119 additions and 1 deletions

View file

@ -90,3 +90,9 @@ fn test_field_enum() {
roundtrip(Enum::C(12.0));
roundtrip(Enum::D(-12345));
}
#[test]
fn test_array() {
roundtrip([1, 2, 3, 4, 5]);
roundtrip([String::from("asd"), String::from("foobar")]);
}