It's almost as if the functions you forget to write tests for are the ones you mess up!
@@ -495,6 +495,15 @@ fn write() {
assert_eq!(&v[..], &[1, 2, 3, 9, 9, 9, 9, 9]);
}
+#[cfg(feature = "std")]
+#[test]
+fn write_all() {
+ let mut v = StaticVec::<u8, 6>::new();
+ assert!(v.write_all(&[1, 2, 3, 4, 5, 6, 7, 8]).is_err());
+ v.clear();
+ assert!(v.write_all(&[1, 2, 3, 4, 5, 6]).is_ok());
+}
+
#[cfg(feature = "std")]
#[test]
fn write_vectored() {
