Blame t/test.t

Packit 237ae7
use Test::More;
Packit 237ae7
Packit 237ae7
use Test::Differences;
Packit 237ae7
Packit 237ae7
my @tests = (
Packit 237ae7
    sub { eq_or_diff "a",               "b" },
Packit 237ae7
    sub { eq_or_diff "a\nb\nc\n",       "a\nc\n" },
Packit 237ae7
    sub { eq_or_diff "a\nb\nc\n",       "a\nB\nc\n" },
Packit 237ae7
    sub { eq_or_diff "a\nb\nc\nd\ne\n", "a\nc\ne\n" },
Packit 237ae7
    sub { eq_or_diff "a\nb\nc\nd\ne\n", "a\nb\nd\ne\n", { context => 0 } },
Packit 237ae7
    sub { eq_or_diff "a\nb\nc\nd\ne\n", "a\nb\nd\ne\n", { context => 10 } },
Packit 237ae7
);
Packit 237ae7
Packit 237ae7
plan tests => scalar @tests;
Packit 237ae7
diag "This test misuses TODO: these TODOs are actually real tests.\n";
Packit 237ae7
Packit 237ae7
TODO: {
Packit 237ae7
    local $TODO = 'Deliberate misuse of TODO';
Packit 237ae7
    $_->() for @tests;
Packit 237ae7
}