The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

# testing APR::Base64 API
use strict;
use warnings FATAL => 'all';
sub num_of_tests {
return 3;
}
sub test {
my $str = '12345qwert!@#$%';
my $encoded = APR::Base64::encode($str);
t_debug("encoded string: $encoded");
ok $encoded;
ok t_cmp(APR::Base64::encode_len(length $str),
length $encoded,
"encoded length");
ok t_cmp(APR::Base64::decode($encoded), $str, "decode");
}
1;