We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cb9346 commit 1042b2cCopy full SHA for 1042b2c
library/std/src/io/buffered/tests.rs
@@ -831,9 +831,9 @@ fn partial_line_buffered_after_line_write() {
831
assert_eq!(&writer.get_ref().buffer, b"Line 1\nLine 2\nLine 3");
832
}
833
834
-/// Test that, given a partial line that exceeds the length of
835
-/// LineBuffer's buffer (that is, without a trailing newline), that that
836
-/// line is written to the inner writer
+/// Test that for calls to LineBuffer::write where the passed bytes do not contain
+/// a newline and on their own are greater in length than the internal buffer, the
+/// passed bytes are immediately written to the inner writer.
837
#[test]
838
fn long_line_flushed() {
839
let writer = ProgrammableSink::default();
0 commit comments