Chris Muller uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-cmm.153.mcz ==================== Summary ==================== Name: KernelTests-cmm.153 Author: cmm Time: 15 June 2010, 3:16:33.911 pm UUID: f8f4c715-3bef-4713-9c90-ee69ae166d08 Ancestors: KernelTests-nice.152 Removed implicit conversion of DateAndTime equality-testing argument. =============== Diff against KernelTests-nice.152 =============== Item was changed: ----- Method: DateAndTimeEpochTest>>testUtcOffset (in category 'testing') ----- testUtcOffset + self assert: (aDateAndTime utcOffset: '0:12:00:00') = '1901-01-01T12:00:00+12:00' asDateAndTime! - self assert: (aDateAndTime utcOffset: '0:12:00:00') = '1901-01-01T12:00:00+12:00'. - ! Item was changed: ----- Method: DateAndTimeLeapTest>>testMidnight (in category 'testing') ----- testMidnight + self assert: aDateAndTime midnight = '2004-02-29T00:00:00+00:00' asDateAndTime. + self deny: aDateAndTime midnight = '2004-02-29T00:00:00+02:00' asDateAndTime - self assert: aDateAndTime midnight = '2004-02-29T00:00:00+00:00'. - self deny: aDateAndTime midnight = '2004-02-29T00:00:00+02:00' ! Item was changed: ----- Method: DateAndTimeEpochTest>>testEpoch (in category 'testing') ----- testEpoch + self assert: aDateAndTime = '1901-01-01T00:00:00+00:00' asDateAndTime - self assert: aDateAndTime = '1901-01-01T00:00:00+00:00'. ! Item was changed: ----- Method: DateAndTimeLeapTest>>testNoon (in category 'testing') ----- testNoon + self assert: aDateAndTime noon = '2004-02-29T12:00:00+00:00' asDateAndTime! - self assert: aDateAndTime noon = '2004-02-29T12:00:00+00:00'. - ! Item was changed: ----- Method: DateAndTimeLeapTest>>testOffset (in category 'testing') ----- testOffset self assert: aDateAndTime offset = '0:02:00:00' asDuration. + self assert: (aDateAndTime offset: '0:12:00:00') = '2004-02-29T13:33:00+12:00' asDateAndTime! - self assert: (aDateAndTime offset: '0:12:00:00') = '2004-02-29T13:33:00+12:00'. - ! Item was changed: ----- Method: DateAndTimeLeapTest>>testUtcOffset (in category 'testing') ----- testUtcOffset + self assert: (aDateAndTime utcOffset: '0:02:00:00') = '2004-02-29T13:33:00+02:00' asDateAndTime! - self assert: (aDateAndTime utcOffset: '0:02:00:00') = '2004-02-29T13:33:00+02:00'. - - ! Item was changed: ----- Method: DateAndTimeTest>>testReadFrom (in category 'Tests') ----- testReadFrom self assert: ('-1199-01-05T20:33:14.321-05:00' asDateAndTime printString = '-1199-01-05T20:33:14.321-05:00'). self assert: ('2002-05-16T17:20:45.1+01:01' asDateAndTime printString = '2002-05-16T17:20:45.1+01:01'). self assert: (' 2002-05-16T17:20:45.02+01:01' asDateAndTime printString = '2002-05-16T17:20:45.02+01:01'). self assert: ('2002-05-16T17:20:45.000000009+01:01' asDateAndTime printString = '2002-05-16T17:20:45.000000009+01:01'). self assert: (' 2002-05-16T17:20' asDateAndTime printString = '2002-05-16T17:20:00+00:00'). self assert: ('2002-05-16T17:20:45' asDateAndTime printString = '2002-05-16T17:20:45+00:00' ). self assert: (' 2002-05-16T17:20:45+01:57' asDateAndTime printString = '2002-05-16T17:20:45+01:57'). + self assert: (' 2002-05-16T17:20:45-02:34' asDateAndTime = '2002-05-16T17:20:45-02:34' asDateAndTime). + self assert: ('2002-05-16T17:20:45+00:00' asDateAndTime = '2002-05-16T17:20:45+00:00' asDateAndTime). + self assert: ('1997-04-26T01:02:03+01:02:3' asDateAndTime = '1997-04-26T01:02:03+01:02:3' asDateAndTime)! - self assert: (' 2002-05-16T17:20:45-02:34' asDateAndTime = '2002-05-16T17:20:45-02:34'). - self assert: ('2002-05-16T17:20:45+00:00' asDateAndTime = '2002-05-16T17:20:45+00:00'). - self assert: ('1997-04-26T01:02:03+01:02:3' asDateAndTime = '1997-04-26T01:02:03+01:02:3'). - - - - ! Item was changed: ----- Method: DateAndTimeEpochTest>>testOffset (in category 'testing') ----- testOffset self assert: aDateAndTime offset = '0:00:00:00' asDuration. + self assert: (aDateAndTime offset: '0:12:00:00') = '1901-01-01T00:00:00+12:00' asDateAndTime! - self assert: (aDateAndTime offset: '0:12:00:00') = '1901-01-01T00:00:00+12:00'. - ! Item was changed: ----- Method: DateAndTimeEpochTest>>testNoon (in category 'testing') ----- testNoon + self assert: aDateAndTime noon = '1901-01-01T12:00:00+00:00' asDateAndTime! - self assert: aDateAndTime noon = '1901-01-01T12:00:00+00:00'. - ! |
Free forum by Nabble | Edit this page |