mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 19:36:16 +00:00
* `hashsum`: add `--zero` option (#4612)
This commit is contained in:
parent
2447849bdc
commit
e7ef9dcd46
2 changed files with 20 additions and 0 deletions
|
@ -53,6 +53,14 @@ macro_rules! test_digest {
|
|||
.stdout_is("input.txt: OK\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_zero() {
|
||||
let ts = TestScenario::new("hashsum");
|
||||
assert_eq!(ts.fixtures.read(EXPECTED_FILE),
|
||||
get_hash!(ts.ucmd().arg(DIGEST_ARG).arg(BITS_ARG).arg("--zero").arg("input.txt").succeeds().no_stderr().stdout_str()));
|
||||
}
|
||||
|
||||
|
||||
#[cfg(windows)]
|
||||
#[test]
|
||||
fn test_text_mode() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue