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:
parent
6278c6f2d6
commit
3ca003846d
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