[squeak-dev] The Inbox: NetworkTests-tonyg.24.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Mon Sep 12 16:33:43 UTC 2011


Did we integrate #assert:equals: in trunk ?
If not, I think we should.

Thanks tonyg, could you add an explicit description, like
assert:...equals:...description: 'RFC822 forbids non-integer seconds
in dates'
(if the selector exists, if not, we should put this sentence in a comment)

Nicolas

2011/9/12  <commits at source.squeak.org>:
> A new version of NetworkTests was added to project The Inbox:
> http://source.squeak.org/inbox/NetworkTests-tonyg.24.mcz
>
> ==================== Summary ====================
>
> Name: NetworkTests-tonyg.24
> Author: tonyg
> Time: 12 September 2011, 9:31:08.83 am
> UUID: 601d24e1-1caa-4e24-a466-97730972c0e0
> Ancestors: NetworkTests-ar.23
>
> Test case for Network-tonyg.119, which avoids printing fractional seconds into an email "Date:" header, since the RFC forbids non-integer seconds in dates.
>
> =============== Diff against NetworkTests-ar.23 ===============
>
> Item was added:
> + TestCase subclass: #MailMessageTest
> +       instanceVariableNames: ''
> +       classVariableNames: ''
> +       poolDictionaries: ''
> +       category: 'NetworkTests-RFC822'!
> +
> + !MailMessageTest commentStamp: 'tonyg 9/12/2011 09:17' prior: 0!
> + This is the unit test for the class MailMessage.!
>
> Item was added:
> + ----- Method: MailMessageTest>>testDateStampFractionalSecondFormatting (in category 'as yet unclassified') -----
> + testDateStampFractionalSecondFormatting
> +       self assert: (MailMessage dateStamp: (DateAndTime fromSeconds: 1.234))
> +               equals: 'Tue, 1 Jan 1901 00:00:01'!
>
>
>



More information about the Squeak-dev mailing list