File: Multi.pm

package info (click to toggle)
libtest-fitesque-rdf-perl 0.100-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 320 kB
  • sloc: perl: 243; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package Internal::Fixture::Multi;
use 5.010001;
use strict;
use warnings;
use parent 'Test::FITesque::Fixture';
use Test::More ;

sub multiplication : Test : Plan(4) {
  my ($self, $args) = @_;
  note($args->{'-special'}->{description});
  ok(defined($args->{factor1}), 'Factor 1 exists');
  ok(defined($args->{factor2}), 'Factor 2 exists');
  ok(defined($args->{product}), 'Product parameter exists');
  is($args->{factor1} * $args->{factor2}, $args->{product}, 'Product is correct');
}

1;