[squeak-dev] The Trunk: KernelTests-nice.98.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Oct 4 21:30:37 UTC 2009
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.98.mcz
==================== Summary ====================
Name: KernelTests-nice.98
Author: nice
Time: 4 October 2009, 11:30:05 am
UUID: 23bf607a-e737-45a2-9486-ecebd3c4c343
Ancestors: KernelTests-nice.97
Test for http://bugs.squeak.org/view.php?id=7401
Float negativeZero shallowCopy loose its negative sign.
self assert: Float negativeZero copy hex = Float negativeZero hex.
=============== Diff against KernelTests-nice.97 ===============
Item was added:
+ ----- Method: FloatTest>>testCopy (in category 'testing') -----
+ testCopy
+ "Elementary tests"
+ self assert: 2.0 copy = 2.0.
+ self assert: -0.5 copy = -0.5.
+
+ "Are exceptional Floats preserved by the copy ?"
+ self assert: Float nan copy isNaN.
+ self assert: Float infinity copy = Float infinity.
+ self assert: Float infinity negated copy = Float infinity negated.
+
+ "Is the sign of zero preserved by the copy ?"
+ self assert: 0.0 copy hex = 0.0 hex.
+ self assert: Float negativeZero copy hex = Float negativeZero hex.!
More information about the Squeak-dev
mailing list
|