From 806d5e90440046a7807f757d70acb29573f89524 Mon Sep 17 00:00:00 2001 From: Kirill Smelkov Date: Tue, 13 Jan 2009 12:33:48 +0300 Subject: [PATCH] mailinfo: add explicit test for mails like ' (A U Thor)' Signed-off-by: Kirill Smelkov --- t/t5100-mailinfo.sh | 2 +- t/t5100/info0013 | 5 +++++ t/t5100/msg0013 | 0 t/t5100/patch0013 | 0 t/t5100/sample.mbox | 5 +++++ 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 t/t5100/info0013 create mode 100644 t/t5100/msg0013 create mode 100644 t/t5100/patch0013 diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh index 886d44910..497cb0dd9 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 000000000..bbe049e20 --- /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 000000000..e69de29bb diff --git a/t/t5100/patch0013 b/t/t5100/patch0013 new file mode 100644 index 000000000..e69de29bb diff --git a/t/t5100/sample.mbox b/t/t5100/sample.mbox index 38725f38d..85df55f2c 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) +Date: Fri, 9 Jun 2006 00:44:16 -0700 +Subject: [PATCH] a patch + -- 2.26.2