The Trunk: Chronology-Tests-cmm.11.mcz

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

The Trunk: Chronology-Tests-cmm.11.mcz

commits-2
Chris Muller uploaded a new version of Chronology-Tests to project The Trunk:
http://source.squeak.org/trunk/Chronology-Tests-cmm.11.mcz

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

Name: Chronology-Tests-cmm.11
Author: cmm
Time: 17 November 2018, 10:40:40.86556 pm
UUID: 13d8a1e2-6c40-453d-ae49-ea6326bac912
Ancestors: Chronology-Tests-dtl.10

New test to expose critical bug in the proposed UTCDateAndTime.

=============== Diff against Chronology-Tests-dtl.10 ===============

Item was added:
+ ----- Method: DateAndTimeTest>>testRestoreFromChronologyTicksAndOffset (in category 'Tests') -----
+ testRestoreFromChronologyTicksAndOffset
+ "Legacy serialized instances are made up of 3 SmallIntegers knowns as 'ticks' plus an 'offset' Duration.  Ensure a serialized DateAndTime can be correctly restored from these values."
+ | dt newDt |
+ dt := '2018-11-17T14:19:42.887676-06:00' asDateAndTime.
+ newDt := DateAndTime basicNew ticks: dt ticks offset: dt offset.
+ self assert: dt = newDt!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Chronology-Tests-cmm.11.mcz

David T. Lewis
On Sun, Nov 18, 2018 at 04:41:48AM +0000, [hidden email] wrote:

> Chris Muller uploaded a new version of Chronology-Tests to project The Trunk:
> http://source.squeak.org/trunk/Chronology-Tests-cmm.11.mcz
>
> ==================== Summary ====================
>
> Name: Chronology-Tests-cmm.11
> Author: cmm
> Time: 17 November 2018, 10:40:40.86556 pm
> UUID: 13d8a1e2-6c40-453d-ae49-ea6326bac912
> Ancestors: Chronology-Tests-dtl.10
>
> New test to expose critical bug in the proposed UTCDateAndTime.
>

Good catch, the fix for the UTC flavor of Chronology is on squeaksource
in Chronology-Core-dtl.32.mcz.

Dave