diff options
author | Kirill Smelkov <kirr@mns.spb.ru> | 2009-01-13 12:33:48 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-28 15:12:24 -0800 |
commit | 806d5e90440046a7807f757d70acb29573f89524 (patch) | |
tree | 310474589f5951f37723589873419fe9a0745ece /t | |
parent | mailinfo: 'From:' header should be unfold as well (diff) | |
download | tgif-806d5e90440046a7807f757d70acb29573f89524.tar.xz |
mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)'
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Diffstat (limited to 't')
-rwxr-xr-x | t/t5100-mailinfo.sh | 2 | ||||
-rw-r--r-- | t/t5100/info0013 | 5 | ||||
-rw-r--r-- | t/t5100/msg0013 | 0 | ||||
-rw-r--r-- | t/t5100/patch0013 | 0 | ||||
-rw-r--r-- | t/t5100/sample.mbox | 5 |
5 files changed, 11 insertions, 1 deletions
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh index 886d44910d..497cb0dd9e 100755 --- a/t/t5100-mailinfo.sh +++ b/t/t5100-mailinfo.sh @@ -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 diff --git a/t/t5100/info0013 b/t/t5100/info0013 new file mode 100644 index 0000000000..bbe049e20e --- /dev/null +++ b/t/t5100/info0013 @@ -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 + diff --git a/t/t5100/msg0013 b/t/t5100/msg0013 new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/t/t5100/msg0013 diff --git a/t/t5100/patch0013 b/t/t5100/patch0013 new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/t/t5100/patch0013 diff --git a/t/t5100/sample.mbox b/t/t5100/sample.mbox index 38725f38d2..85df55f2c4 100644 --- a/t/t5100/sample.mbox +++ b/t/t5100/sample.mbox @@ -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 + |