in reply to Re^3: Writing tests when you don't know what the output should be
in thread Writing tests when you don't know what the output should be
Sure thing:
package DupEventChecker; use Modern::Perl; use IO::Dir; use Moose; has 'dir' => ( is => 'ro', isa => 'IO::Dir', writer => '_set_dir' ); sub BUILD { my $self = shift; my $args = shift; $self->_set_dir(IO::Dir->new($args->{dir_name})); } return 1;
And here's the script:
use Modern::Perl; use DupEventChecker; my $dir = DupEventChecker->new({dir_name => '.'});
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Writing tests when you don't know what the output should be
by choroba (Cardinal) on May 17, 2016 at 22:24 UTC | |
by nysus (Parson) on May 18, 2016 at 03:54 UTC | |
by choroba (Cardinal) on May 18, 2016 at 08:57 UTC | |
by nysus (Parson) on May 19, 2016 at 15:43 UTC | |
by choroba (Cardinal) on May 19, 2016 at 15:57 UTC | |
Re^5: Writing tests when you don't know what the output should be
by stevieb (Canon) on May 17, 2016 at 22:46 UTC |