Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.131.mcz==================== Summary ====================
Name: KernelTests-nice.131
Author: nice
Time: 13 February 2010, 2:52:05.98 am
UUID: 507965b6-af27-f947-98ac-8584ae73dad5
Ancestors: KernelTests-nice.130
Tests for reading long numbers from
http://bugs.squeak.org/view.php?id=6982=============== Diff against KernelTests-nice.130 ===============
Item was added:
+ ----- Method: FloatTest>>testReadFromManyDigits (in category 'testing - conversion') -----
+ testReadFromManyDigits
+ "A naive algorithm may interpret these representations as Infinity or NaN.
+ This is
http://bugs.squeak.org/view.php?id=6982"
+
+ | s1 s2 |
+ s1 := '1' , (String new: 321 withAll: $0) , '.0e-321'.
+ s2 := '0.' , (String new: 320 withAll: $0) , '1e321'.
+ self assert: (Number readFrom: s1) = 1.
+ self assert: (Number readFrom: s2) = 1.!