[squeak-dev] The Trunk: KernelTests-nice.98.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] The Trunk: KernelTests-nice.98.mcz

commits-2
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.!