We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fab45 commit 9e1d09eCopy full SHA for 9e1d09e
tests/buf_writer.rs
@@ -48,13 +48,13 @@ fn test_buffered_writer() {
48
}
49
50
#[test]
51
-fn test_buffered_writer_inner_into_inner_does_not_flush() {
+fn test_buffered_writer_inner_into_inner_flushes() {
52
task::block_on(async {
53
let mut w = BufWriter::with_capacity(3, Vec::new());
54
w.write(&[0, 1]).await.unwrap();
55
assert_eq!(*w.get_ref(), []);
56
let w = w.into_inner().await.unwrap();
57
- assert_eq!(w, []);
+ assert_eq!(w, [0, 1]);
58
})
59
60
0 commit comments