Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.132.mcz==================== Summary ====================
Name: KernelTests-nice.132
Author: nice
Time: 13 February 2010, 3:17:47.721 am
UUID: c1052cf3-8a85-714e-876d-4bcab22c58e6
Ancestors: KernelTests-nice.131
Change the expectations: reading some malformed number will now fail and raise an Error, not answer 0
=============== Diff against KernelTests-nice.131 ===============
Item was changed:
----- Method: IntegerTest>>testIntegerReadFrom (in category 'tests - instance creation') -----
testIntegerReadFrom
self assert: (Integer readFrom: '123' readStream base: 10) = 123.
self assert: (Integer readFrom: '-123' readStream base: 10) = -123.
+ self should: [Integer readFrom: 'abc' readStream base: 10] raise: Error.
+ self should: [Integer readFrom: 'D12' readStream base: 10] raise: Error.
+ self assert: (Integer readFrom: 'abc' readStream ifFail: [0]) = 0.
+ self assert: (Integer readFrom: 'D12' readStream ifFail: [0]) = 0.
- self assert: (Integer readFrom: 'abc' readStream base: 10) = 0.
- self assert: (Integer readFrom: 'D12' readStream base: 10) = 0.
self assert: (Integer readFrom: '1two3' readStream base: 10) = 1.
!