Get test passing again

This commit is contained in:
Carl Lerche
2017-10-21 15:47:45 -07:00
parent 03d501b18d
commit 149922d7cf
2 changed files with 40 additions and 15 deletions
+6 -1
View File
@@ -47,7 +47,12 @@ fn test_get_u16_buffer_underflow() {
#[test]
fn test_bufs_vec() {
let buf = Cursor::new(b"hello world");
let mut dst: [&IoVec; 2] = Default::default();
let b1: &[u8] = &mut [0];
let b2: &[u8] = &mut [0];
let mut dst: [&IoVec; 2] =
[b1.into(), b2.into()];
assert_eq!(1, buf.bytes_vec(&mut dst[..]));
}