A new version of KernelTests was added to project The Trunk:
http://source.squeak.org/trunk/KernelTests-tfel.89.mcz==================== Summary ====================
Name: KernelTests-tfel.89
Author: tfel
Time: 1 September 2009, 11:43:01 am
UUID: f0986558-bc8e-4799-8daf-547574dd7e6e
Ancestors: KernelTests-laza.88
Change a test in the Time tests to check if it allows nanSeconds at the end. Add a test in Date tests to check parsing from ISO8601. These are for a proposed change in the parsing methods.
=============== Diff against KernelTests-laza.88 ===============
Item was changed:
----- Method: TimeTest>>testReadFrom (in category 'Tests') -----
testReadFrom
+ | t1 t2 |
+ t1 := self timeClass readFrom: '4:02:47 am' readStream.
+ t2 := self timeClass readFrom: '4:02:47.000 am' readStream.
- | string t |
- string := '4:02:47 am'.
- t := self timeClass readFrom: string readStream.
self
+ assert: time = t1;
+ assert: time = t2
- assert: time = t.
!
Item was added:
+ ----- Method: DateTest>>testConvertingFromIso8601 (in category 'Tests') -----
+ testConvertingFromIso8601
+
+ self
+ assert: '1973-06-02' asDate = date;
+ assert: '1973-JUN-02' asDate = date;
+ assert: '1973-June-02' asDate = date!