mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
basenc: add utility
basenc is a brand-new gnu core utility (added less than 3 years ago!), which enables some more encodings.
This commit is contained in:
parent
158a8a387b
commit
b8c383e210
12 changed files with 290 additions and 34 deletions
16
tests/by-util/test_basenc.rs
Normal file
16
tests/by-util/test_basenc.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use crate::common::util::*;
|
||||
|
||||
#[test]
|
||||
fn test_z85_not_padded() {
|
||||
// The z85 crate deviates from the standard in some cases; we have to catch those
|
||||
new_ucmd!()
|
||||
.args(&["--z85", "-d"])
|
||||
.pipe_in("##########")
|
||||
.fails()
|
||||
.stderr_only("basenc: error: invalid input");
|
||||
new_ucmd!()
|
||||
.args(&["--z85"])
|
||||
.pipe_in("123")
|
||||
.fails()
|
||||
.stderr_only("basenc: error: invalid input (length must be multiple of 4 characters)");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue