]> git.vpit.fr Git - perl/modules/Test-Leaner.git/commitdiff
Stop failing on unlike() prototype with old Test::More
authorVincent Pit <vince@profvince.com>
Fri, 8 Apr 2011 18:40:15 +0000 (20:40 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 8 Apr 2011 18:40:15 +0000 (20:40 +0200)
t/01-import.t

index 9027e9963135acad44277f60eceb8bfa5ef44d1a..35c8d5ca6469819d8004e886f9ce8f59a88ccf21 100644 (file)
@@ -38,6 +38,9 @@ unless ($Test::More::VERSION > 0.51) {
 
 for (@syms) {
  eval { Test::Leaner->import(import => [ $_ ]) };
- tm_is $@,            '',                          "import $_";
- tm_is prototype($_), prototype("Test::More::$_"), "prototype $_";
+ tm_is $@, '', "import $_";
+ my $proto = ($_ eq 'unlike' and $Test::More::VERSION < 0.4802)
+             ? '$$;$'
+             : prototype("Test::More::$_");
+ tm_is prototype($_), $proto, "prototype $_";
 }