The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;
use Test::More;
use Test::Fatal qw(exception lives_ok);
use Algorithm::HyperLogLog;
 
my $hll = Algorithm::HyperLogLog->new(5);
 
isa_ok $hll, 'Algorithm::HyperLogLog';
 
like exception{ Algorithm::HyperLogLog->new(3); }, qr/^Number of ragisters must be in the range/;
like exception{ Algorithm::HyperLogLog->new(17); }, qr/^Number of ragisters must be in the range/;
lives_ok{ Algorithm::HyperLogLog->new(4); };
lives_ok{ Algorithm::HyperLogLog->new(16); };
 
done_testing();
 
__END__