[Pkg] The Trunk: Chronology-Tests-dtl.10.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Oct 23 03:03:38 UTC 2018


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'!



More information about the Packages mailing list