diff --git a/src/resp/codec.rs b/src/resp/codec.rs index 669f285..ea2a6e2 100644 --- a/src/resp/codec.rs +++ b/src/resp/codec.rs @@ -126,8 +126,11 @@ mod tests { #[test] fn test_decode_nulls() { - let nulls = decode_nulls(b"_\r\n"); - assert_eq!(true, nulls.is_ok()) + let (remain, resp) = decode_nulls(b"_\r\n").unwrap(); + let Nulls(_) = resp else { + panic!("not SimpleStrings") + }; + assert_eq!(b"", remain); } #[test]