mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)'

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
This commit is contained in:
Kirill Smelkov 2009-01-13 12:33:48 +03:00 committed by Junio C Hamano
parent ddfb3696b9
commit 806d5e9044
5 changed files with 11 additions and 1 deletions

View file

@ -11,7 +11,7 @@ test_expect_success 'split sample box' \
'git mailsplit -o. ../t5100/sample.mbox >last &&
last=`cat last` &&
echo total is $last &&
test `cat last` = 12'
test `cat last` = 13'
for mail in `echo 00*`
do

5
t/t5100/info0013 Normal file
View file

@ -0,0 +1,5 @@
Author: A U Thor
Email: a.u.thor@example.com
Subject: a patch
Date: Fri, 9 Jun 2006 00:44:16 -0700

0
t/t5100/msg0013 Normal file
View file

0
t/t5100/patch0013 Normal file
View file

View file

@ -556,3 +556,8 @@ index 3fd3afb..0ee807e 100644
#. на своей машине: отредактировать /etc/sudoers (команда ``visudo``) примерно следующим образом::
--
1.5.6.5
From nobody Mon Sep 17 00:00:00 2001
From: <a.u.thor@example.com> (A U Thor)
Date: Fri, 9 Jun 2006 00:44:16 -0700
Subject: [PATCH] a patch