File: sugar.t

package info (click to toggle)
libcrypt-random-source-perl 0.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 360 kB
  • sloc: perl: 556; sh: 6; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use Test::More 0.88;

use ok 'Crypt::Random::Source';

ok( defined &get_weak, "get_weak" );
ok( defined &get_strong, "get_strong" );

is( length(get_weak(10)), "10", "got 10 weak bytes" );

isa_ok( $Crypt::Random::Source::weak, "Crypt::Random::Source::Weak" );

ok( !$Crypt::Random::Source::strong, "no strong source yet" );

done_testing;
# ex: set sw=4 et: