From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2ED911F466; Mon, 25 Nov 2019 05:24:55 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Cc: "Eric W. Biederman" Subject: [PATCH 2/3] t/msgtime: add more checks for known cases Date: Mon, 25 Nov 2019 05:24:53 +0000 Message-Id: <20191125052454.19950-3-e@80x24.org> In-Reply-To: <20191125052454.19950-1-e@80x24.org> References: <20191125052454.19950-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Broken email clients sent the darndest things, make sure we can still support them when we make Date::Parse optional. --- t/msgtime.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/msgtime.t b/t/msgtime.t index 7bf73185..f969fa25 100644 --- a/t/msgtime.t +++ b/t/msgtime.t @@ -88,5 +88,8 @@ is_datestamp('Thursday, 20 Feb 2003 01:14:34 +000', [1045703674, '+0000']); is_datestamp('Fri, 28 Jun 2002 12:54:40 -700', [1025294080, '-0700']); is_datestamp('Sat, 12 Jan 2002 12:52:57 -200', [1010847177, '-0200']); is_datestamp('Mon, 05 Nov 2001 10:36:16 -800', [1004985376, '-0800']); - +is_datestamp('Tue, 3 Jun 2003 8:58:23 --500', [1054648703, '-0500']); +is_datestamp('Thu, 18 May 100 10:40:43 +0200 (MET DST)', [958639243, '+0200']); +is_datestamp('Thu, 18 May 2000 10:40:43 +0200', [958639243, '+0200']); +is_datestamp('Tue, 27 Feb 2007 16:23:25 -0060', [1172597005, '-0100']); done_testing();