1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Finish fast decode/encode by folding in Z85

This commit is contained in:
Andrew Liebenow 2024-09-22 08:28:20 -05:00
parent 5cd050665d
commit cdebd24733
5 changed files with 242 additions and 282 deletions

View file

@ -7,13 +7,18 @@
use crate::common::util::TestScenario;
#[test]
fn test_z85_not_padded() {
fn test_z85_not_padded_decode() {
// 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\n");
}
#[test]
fn test_z85_not_padded_encode() {
// The z85 crate deviates from the standard in some cases; we have to catch those
new_ucmd!()
.args(&["--z85"])
.pipe_in("123")