MCPcopy Create free account
hub / github.com/Lokathor/tinyvec / ArrayVec_append

Function ArrayVec_append

tests/arrayvec.rs:127–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125
126#[test]
127fn ArrayVec_append() {
128 let mut av = array_vec!([i32; 8] => 1, 2, 3);
129 let mut av2 = array_vec!([i32; 8] => 4, 5, 6);
130 //
131 av.append(&mut av2);
132 assert_eq!(av.as_slice(), &[1_i32, 2, 3, 4, 5, 6]);
133 assert_eq!(av2.as_slice(), &[]);
134}
135
136#[test]
137fn ArrayVec_remove() {

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected