mirror of
https://github.com/uutils/coreutils
synced 2024-12-18 00:53:25 +00:00
Empty test to start with cat
This commit is contained in:
parent
2dad625dfa
commit
29729818f0
1 changed files with 13 additions and 0 deletions
|
@ -467,3 +467,16 @@ fn write_nonprint_to_end<W: Write>(in_buf: &[u8], writer: &mut W, tab: &[u8]) ->
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mod tests {
|
||||||
|
use std::io::{BufWriter, stdout};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_write_nonprint_to_end() {
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue