From 76ff2f54801dcf6a3d2d5884e826c969ee719aac Mon Sep 17 00:00:00 2001 From: Son Date: Sun, 9 Feb 2020 13:26:51 +1100 Subject: [PATCH] Test new line --- src/cat/cat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cat/cat.rs b/src/cat/cat.rs index 22a494bef..067e8e005 100755 --- a/src/cat/cat.rs +++ b/src/cat/cat.rs @@ -472,11 +472,11 @@ mod tests { use std::io::{BufWriter, stdout}; #[test] - fn test_write_nonprint_to_end() { + fn test_write_nonprint_to_end_new_line() { let mut writer = BufWriter::with_capacity(1024 * 64, stdout()); let in_buf = [b'\n']; let tab: [u8; 0] = []; super::write_nonprint_to_end(&in_buf, &mut writer, &tab); - assert_eq!(tab.len(), 0); + assert_eq!(writer.buffer().len(), 0); } }