1 use Test::Base tests => 3;
4 if ($^O eq 'MSWin32') {
5 skip 'Win32 doesn\'t have /tmp', 3;
8 unless (Test::Base->have_text_diff) {
9 skip 'The autodiffing feature of Test::Base (which rocketh) requires Text-Diff-0.35 and Algorithm-Diff-1.15 (or greater).', 3;
13 test => [qw(exec_perl_stdout smooth_output)],
14 expected => 'smooth_output',
19 s/test-blocks-\d+/test-blocks-321/;
20 s/at line \d+\)/at line 000)/;
21 s/in (.*) at line (\d+)/at $1 line $2/; # for Test::Simple 0.65
30 use Test::Base tests => 1;
31 is('a b c', 'a b x', 'little diff');
34 not ok 1 - little diff
35 # Failed test 'little diff'
36 # in /tmp/test-blocks-321 at line 3.
39 # Looks like you failed 1 test of 1.
45 use Test::Base tests => 1;
46 is(<<XXX, <<YYY, 'big diff');
67 # Failed test 'big diff
75 # in /tmp/test-blocks-321 at line 3.
76 # Looks like you failed 1 test of 1.
79 === diff with space - note: doesn't help point out the extra space (yet)
82 use Test::Base tests => 1;
83 is(<<XXX, <<YYY, 'diff with space');
95 not ok 1 - diff with space
102 # Failed test 'diff with space
109 # in /tmp/test-blocks-321 at line 3.
110 # Looks like you failed 1 test of 1.