Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.166.mcz==================== Summary ====================
Name: KernelTests-nice.166
Author: nice
Time: 22 September 2010, 1:21:22.959 am
UUID: a6fb8943-99af-49c4-b69b-31b34eba1259
Ancestors: KernelTests-nice.165
Assert we parse -0.0 as a negativeZero.
=============== Diff against KernelTests-nice.165 ===============
Item was added:
+ ----- Method: NumberParsingTest>>testNegativeZero (in category 'tests - Integer') -----
+ testNegativeZero
+ "This test ensure that -0.0 will produce a negativeZero"
+
+ | negativeZero |
+ negativeZero := Number readFrom: '-0.0' readStream.
+
+ "If it is a negative zero, it must behave like a negative zero... IEEE 754 tells how it should behave"
+ self deny: (negativeZero at: 1) = 0 description: 'In IEEE 754, a negative zero has its sign bit set to 1'..
+ self assert: negativeZero = 0 description: 'In IEEE 754, a negative zero cannot be distinguished from zero'.!