The Trunk: KernelTests-cmm.142.mcz

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

The Trunk: KernelTests-cmm.142.mcz

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

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

Name: KernelTests-cmm.142
Author: cmm
Time: 5 March 2010, 3:59:31.392 pm
UUID: 4c5bf281-d5da-463e-ad70-386e912ac3b6
Ancestors: KernelTests-ul.141

Incorporated test demonstrating broken Year>>#previous, for leap years.

=============== Diff against KernelTests-ul.141 ===============

Item was added:
+ ----- Method: YearTest>>testPreviousInLeapYear (in category 'Tests') -----
+ testPreviousInLeapYear
+
+ | leap |
+ leap := Year year: 2008.
+ self assert: leap isLeapYear.
+ self assert: (Year year: (leap year - 1)) = leap previous !