Patrick Rein uploaded a new version of NetworkTests to project The Trunk:
http://source.squeak.org/trunk/NetworkTests-pre.58.mcz==================== Summary ====================
Name: NetworkTests-pre.58
Author: pre
Time: 2 May 2019, 3:20:22.414906 pm
UUID: 7fac5835-3b19-454a-91e2-2a091cc900e0
Ancestors: NetworkTests-pre.57
Improves two test cases for MailMessages relying on old DateAndTime behavior.
=============== Diff against NetworkTests-pre.57 ===============
Item was changed:
----- Method: MailMessageTest>>testDateAndDateString (in category 'tests') -----
testDateAndDateString
| newMail |
newMail := MailMessage from: 'From: Al Gore <
[hidden email]>
To: White House Transportation Coordinator <
[hidden email]>
Subject: [Map of a country]
Date: Mon, 12 Aug 2002 17:42:00 +0000
there is a country map in this mail somewhere'.
+ self assert: (DateAndTime year: 2002 month: 8 day: 12 hour: 17 minute: 42 second: 0 offset: Timespan defaultOffset) equals: newMail date.
- self assert: (DateAndTime year: 2002 month: 8 day: 12 hour: 17 minute: 42) equals: newMail date.
self assert: '8/12/02' equals: newMail dateString.!
Item was changed:
----- Method: MailMessageTest>>testDateStampFractionalSecondFormatting (in category 'tests') -----
testDateStampFractionalSecondFormatting
+ self
+ assert: (MailMessage dateStamp: (DateAndTime year: 1901 month: 1 day: 1 hour: 0 minute: 0 second: 1.234 offset: Timespan defaultOffset))
+ equals: 'Tue, 1 Jan 1901 00:00:01'
- self assert: (MailMessage dateStamp: (DateAndTime fromSeconds: 1.234))
- = 'Tue, 1 Jan 1901 00:00:01'
description: 'RFC822 (and RFC2822) forbids non-integer seconds in dates'!