mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +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…
Add table
Add a link
Reference in a new issue