]> git.vpit.fr Git - perl/modules/re-engine-Plugin.git/commitdiff
Starting from 5.10.1, the 'undef' test is only run once
authorVincent Pit <vince@profvince.com>
Sat, 22 Aug 2009 23:37:48 +0000 (01:37 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 22 Aug 2009 23:37:48 +0000 (01:37 +0200)
t/methods/str/undef.t

index 34e24b7d0c50ba9de79fd77fc8621f2c5d81c975..fe6500a37aee7f741412fafe1d0cc5dab050a55d 100644 (file)
@@ -1,10 +1,9 @@
 use strict;
-use Test::More tests => 3;
+use Test::More tests => ($] <= 5.010 ? 3 : 1);
 use re::engine::Plugin (
     comp => sub {
         my ($re, $str) = @_;
 
-        # Runs three times apperently.
         is($re->str, undef, 'str is undef');
 
         return;