The Trunk: Chronology-Tests-dtl.10.mcz

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

The Trunk: Chronology-Tests-dtl.10.mcz

commits-2
David T. Lewis uploaded a new version of Chronology-Tests to project The Trunk:
http://source.squeak.org/trunk/Chronology-Tests-dtl.10.mcz

==================== Summary ====================

Name: Chronology-Tests-dtl.10
Author: dtl
Time: 22 October 2018, 11:03:15.772641 pm
UUID: a784eccd-7120-434e-9112-886b445aaffa
Ancestors: Chronology-Tests-pre.9

Start time for a Date created from a DateAndTime should preserve local time offset.

=============== Diff against Chronology-Tests-pre.9 ===============

Item was added:
+ ----- Method: DateTest>>testFromDateAndTime (in category 'Tests') -----
+ testFromDateAndTime
+
+ | aDateAndTime |
+ aDateAndTime := '2018-10-22T22:51:38.322706-04:00' asDateAndTime.
+ aDate := aDateAndTime asDate.
+ self
+ assert: aDate start offset
+ equals: aDateAndTime offset
+ description: 'Start time for a Date created from a DateAndTime should preserve local time offset'!