1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 11:36:16 +00:00

shred: add support for hex and octal size

This commit is contained in:
John Shin 2023-05-29 20:10:16 -07:00 committed by Sylvestre Ledru
parent 6278c6f2d6
commit 3ca003846d
2 changed files with 22 additions and 31 deletions

View file

@ -51,3 +51,14 @@ fn test_shred_force() {
// file_a was deleted.
assert!(!at.file_exists(file));
}
#[test]
fn test_hex() {
let (at, mut ucmd) = at_and_ucmd!();
let file = "test_hex";
at.touch(file);
ucmd.arg("--size=0x10").arg(file).succeeds();
}