Add the following packages libalgorithm-diff-perl libspiffy-perl libtext-diff-perl...
[pkg-perl] / deb-src / libtest-base-perl / libtest-base-perl-0.54 / t / xxx.t
1 use Test::Base;
2
3 plan eval { require YAML; 1 }
4   ? (tests => 1 * blocks)
5   : skip_all => 'Requires YAML';
6
7 my ($block) = blocks;
8
9 eval { XXX($block->text) };
10
11 my $error = "$@";
12 $error =~ s/\\/\//g;
13
14 is $error, $block->xxx, $block->name;
15
16 __DATA__
17 === XXX Test
18 --- text eval
19 +{ foo => 'bar' }
20 --- xxx
21 ---
22 foo: bar
23 ...
24   at t/xxx.t line 9