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;
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 unlike $lei_out, qr/No newline at end of file/;
11 lei_ok('mail-diff', 't/data/0001.patch', 't/data/0001.patch');
12 is($lei_out, '', 'no output if identical');