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:
parent
2b3594a5f5
commit
f8a46196ef
2 changed files with 22 additions and 31 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue