|
There is no assert: in the method. It does not test anything actually. I tried to replace it with:
testAsDateAndTime
| examples | examples := #('-1199-01-05T20:33:14.321-05:00' '2002-05-16T17:20:45.1+01:01'
'2002-05-16T17:20:45.02+01:01'
'2002-05-16T17:20:45.003+01:01'
'2002-05-16T17:20:45.0004+01:01' '2002-05-16T17:20:45.00005' '2002-05-16T17:20:45.000006+01:01'
'2002-05-16T17:20:45.0000007+01:01' '2002-05-16T17:20:45.00000008-01:01' '2002-05-16T17:20:45.000000009+01:01' '2002-05-16T17:20:45.0000000001+01:01'
'2002-05-16T17:20' '2002-05-16T17:20:45' '2002-05-16T17:20:45+01:57' '2002-05-16T17:20:45-02:34' '2002-05-16T17:20:45+00:00' '1997-04-26T01:02:03+01:02:3' ). examples do: [ :each | self assert: each equals: each asDateAndTime printString ]
But, this test fails
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Later
|
Go to Case
|
|