2023-03-20 13:51:19 +00:00
|
|
|
use crate::common::util::TestScenario;
|
2021-08-04 22:28:14 +00:00
|
|
|
|
|
|
|
#[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()
|
2023-01-05 20:09:15 +00:00
|
|
|
.stderr_only("basenc: error: invalid input\n");
|
2021-08-04 22:28:14 +00:00
|
|
|
new_ucmd!()
|
|
|
|
.args(&["--z85"])
|
|
|
|
.pipe_in("123")
|
|
|
|
.fails()
|
2023-01-05 20:09:15 +00:00
|
|
|
.stderr_only("basenc: error: invalid input (length must be multiple of 4 characters)\n");
|
2021-08-04 22:28:14 +00:00
|
|
|
}
|