From 806922f643b05b50e423a7f16fc800dfd52ca8ef Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 3 Sep 2023 13:56:02 -0400 Subject: ascii85: ignore whitespace between ~ and > (fixes #973) --- libtests/qtest/ascii85.test | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libtests') diff --git a/libtests/qtest/ascii85.test b/libtests/qtest/ascii85.test index 53977619..1843f8a5 100644 --- a/libtests/qtest/ascii85.test +++ b/libtests/qtest/ascii85.test @@ -20,4 +20,10 @@ $td->runtest("partial decode", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); -$td->report(2); +$td->runtest("newline between ~ and >", + {$td->COMMAND => "echo '\@<5skEHbu7\$3~\n>' | ascii85"}, + {$td->STRING => "asdfqwer\n", + $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); + +$td->report(3); -- cgit v1.2.3-54-g00ecf