File: text_vs_data.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 (20 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 },
    sub { eq_or_diff_text $a, $b },
    sub { eq_or_diff_data $a, $b },
);

plan tests => scalar @tests;

TODO: {
    local $TODO = 'Force the output to be displayed';
    $_->() for @tests;
}