File: 50-factory-function.t

package info (click to toggle)
libmath-random-oo-perl 0.22-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 216 kB
  • sloc: perl: 671; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 361 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl
use strict;
use warnings;
use blib;  

# Math::Random::OO  

use Test::More tests => 6;

my @fcns;
BEGIN { @fcns = qw (Uniform UniformInt Normal Bootstrap) }
BEGIN { use_ok( 'Math::Random::OO', @fcns ); }
can_ok( 'main', @fcns );

my $obj;
for (@fcns) {
    no strict 'refs';
    $obj = &{$_}(0,1);
    isa_ok( $obj, "Math::Random::OO::$_" );
}