1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +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
parent 2b3594a5f5
commit f8a46196ef
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();
}