Code

mailinfo: add explicit test for mails like '<a.u.thor@example.com> (A U Thor)'
authorKirill Smelkov <kirr@mns.spb.ru>
Tue, 13 Jan 2009 09:33:48 +0000 (12:33 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jan 2009 23:12:24 +0000 (15:12 -0800)
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
t/t5100-mailinfo.sh
t/t5100/info0013 [new file with mode: 0644]
t/t5100/msg0013 [new file with mode: 0644]
t/t5100/patch0013 [new file with mode: 0644]
t/t5100/sample.mbox

index 886d44910d9467dce7e25a7bb4dbc625f3093bb4..497cb0dd9efe7d8ec2b2428795342f0822cfdc1b 100755 (executable)
@@ -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 (file)
index 0000000..bbe049e
--- /dev/null
@@ -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 (file)
index 0000000..e69de29
diff --git a/t/t5100/patch0013 b/t/t5100/patch0013
new file mode 100644 (file)
index 0000000..e69de29
index 38725f38d2ab1dca07efb12b587fb0bf8a2cf16b..85df55f2c43c9462f7bf36f0b3acf186b84d64b0 100644 (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
+