Fix bug in test
[mafia.git] / t / examples.t
index 56423e76896351ee1b937a3734f82439682f6bfb..61606d8ee7b6c3855eef4a369994c37cefaf660d 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 use File::Spec::Functions qw/rel2abs/;
-use IO::Handle;
+use IO::File;
 
 my @examples;
 BEGIN { @examples = glob 't/examples/*.pl' };
@@ -17,7 +17,7 @@ for my $example (@examples) {
        open STDOUT, '>', \$out;
        clean;
 
-       do rel2abs $example;
+       do(rel2abs($example));
        $example =~ s/\.pl$//;
        my $ok = join '', IO::File->new("$example.out", '<')->getlines;
        is $out, $ok, substr $example, length 't/examples/'
This page took 0.010339 seconds and 4 git commands to generate.