File: diff_styles.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 (21 lines) | stat: -rw-r--r-- 428 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
21
#!/usr/bin/perl

use strict;
use warnings;

use Test::More 'no_plan';
use Test::Differences;

my $got = join '' => 1..40;

TODO: {
    local $TODO = 'Testing diff styles';
    table_diff;
    eq_or_diff $got, "-$got", 'table diff';
    unified_diff;
    eq_or_diff $got, "-$got", 'unified diff';
    context_diff;
    eq_or_diff $got, "-$got", 'context diff';
    oldstyle_diff;
    eq_or_diff $got, "-$got", 'oldstyle diff';
}