]> Sergey Matveev's repositories - public-inbox.git/blob - t/lei-mail-diff.t
use Net::SSLeay (OpenSSL) for SHA-(1|256) if installed
[public-inbox.git] / t / lei-mail-diff.t
1 #!perl -w
2 # Copyright (C) all contributors <meta@public-inbox.org>
3 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 use v5.12; use PublicInbox::TestCommon;
5
6 test_lei(sub {
7         ok(!lei('mail-diff', 't/data/0001.patch', 't/data/binary.patch'),
8                 'different messages are different');
9         like($lei_out, qr/^\+/m, 'diff shown');
10         lei_ok('mail-diff', 't/data/0001.patch', 't/data/0001.patch');
11         is($lei_out, '', 'no output if identical');
12 });
13
14 done_testing;