Manuscript (Case [Issue]22239) _Inbox - DataAndTimeTest>>testAsDateAndTime is meaningful

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22239) _Inbox - DataAndTimeTest>>testAsDateAndTime is meaningful

Pharo Issue Tracker
Manuscript Notification
avatar
Alexandre Bergel opened Case 22239: DataAndTimeTest>>testAsDateAndTime is meaningful and assigned it to Everyone:
Bug in Project:  _Inbox: Not Spam  •  You are subscribed to this case
There is no assert: in the method. It does not test anything actually.
I tried to replace it with:

testAsDateAndTime

| examples |
examples := #('-1199-01-05T20:33:14.321-05:00'
'2002-05-16T17:20:45.1+01:01'

'2002-05-16T17:20:45.02+01:01'

'2002-05-16T17:20:45.003+01:01'

'2002-05-16T17:20:45.0004+01:01'
'2002-05-16T17:20:45.00005'
'2002-05-16T17:20:45.000006+01:01'

'2002-05-16T17:20:45.0000007+01:01'
'2002-05-16T17:20:45.00000008-01:01'
'2002-05-16T17:20:45.000000009+01:01'
'2002-05-16T17:20:45.0000000001+01:01'

'2002-05-16T17:20'
'2002-05-16T17:20:45'
'2002-05-16T17:20:45+01:57'
'2002-05-16T17:20:45-02:34'
'2002-05-16T17:20:45+00:00'
'1997-04-26T01:02:03+01:02:3' ).
examples do: [ :each |
self assert: each equals: each asDateAndTime printString
]

But, this test fails
Priority Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker