The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
Changes 03
META.json 11
META.yml 11
Makefile.PL 11
lib/Test/Base.pm 11
t/diff_is.t 35
6 files changed (This is a version diff) 712
@@ -1,3 +1,6 @@
+0.86 Mon Aug 18 08:29:20 PDT 2014
+ - Fix for issue/15
+
 0.85 Mon Aug 18 08:07:52 PDT 2014
  - Pull Module::Install::TestBase out of Test::Base
  - It will be released in separate dist
@@ -62,6 +62,6 @@
          "web" : "https://github.com/ingydotnet/test-base-pm"
       }
    },
-   "version" : "0.85"
+   "version" : "0.86"
 }
 
@@ -31,4 +31,4 @@ resources:
   bugtracker: https://github.com/ingydotnet/test-base-pm/issues
   homepage: https://github.com/ingydotnet/test-base-pm
   repository: https://github.com/ingydotnet/test-base-pm.git
-version: '0.85'
+version: '0.86'
@@ -28,7 +28,7 @@ my %WriteMakefileArgs = (
     "ExtUtils::MakeMaker" => "6.52",
     "Text::Diff" => "0.35"
   },
-  "VERSION" => "0.85",
+  "VERSION" => "0.86",
   "test" => {
     "TESTS" => "t/*.t"
   }
@@ -1,5 +1,5 @@
 package Test::Base;
-our $VERSION = '0.85';
+our $VERSION = '0.86';
 
 use Spiffy -Base;
 use Spiffy ':XXX';
@@ -17,8 +17,10 @@ SKIP: {
 
     sub smooth_output {
         s/test-blocks-\d+/test-blocks-321/;
-        s/at line \d+\)/at line 000)/;
-        s/in (.*) at line (\d+)/at $1 line $2/; # for Test::Simple 0.65
+        # XXX Busted across various Test::Simple versions
+        # s/at line \d+\)/at line 000)/;
+        # s/in (.*) at line (\d+)/at $1 line $2/; # for Test::Simple 0.65
+        s/(   )(.*) line (\d+)\./$1at <file> line <number>./;
         s/TAP version 13//;
         s{Looks like you failed (\d+) (tests?) of (\d+)\.}{$1 $2 of $3 failed.};
         s/^\n//gm;
@@ -35,7 +37,7 @@ is('a b c', 'a b x', 'little diff');
 1..1
 not ok 1 - little diff
 #   Failed test 'little diff'
-#   in /tmp/test-blocks-321 at line 3.
+#   at <file> line <number>.
 #          got: 'a b c'
 #     expected: 'a b x'
 # Looks like you failed 1 test of 1.