mirror of
https://github.com/uutils/coreutils
synced 2024-12-18 00:53:25 +00:00
Test new line
This commit is contained in:
parent
29729818f0
commit
76ff2f5480
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue