File: pass.t

package info (click to toggle)
libtest-differences-perl 0.61-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 144 kB
  • sloc: perl: 300; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Test::More;
use Test::Differences;

# use large enough data sets that this thing chooses context => 3 instead
# of "full document context".
my $a = ( "\n" x 30 ) . "a\n";
my $b = ( "\n" x 30 ) . "b\n";

my @tests = ( 
    sub { eq_or_diff [ "a", "b" ], [ "a", "b" ] }, 
);

plan tests => scalar @tests;

$_->() for @tests;