The Trunk: KernelTests-nice.104.mcz

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

The Trunk: KernelTests-nice.104.mcz

commits-2
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.104.mcz

==================== Summary ====================

Name: KernelTests-nice.104
Author: nice
Time: 30 October 2009, 10:30:16 am
UUID: b00c25ae-448f-45af-ab6b-2cc5f303632a
Ancestors: KernelTests-nice.103

Test #arcTan: behavior especially near zero and negativeZero

=============== Diff against KernelTests-nice.103 ===============

Item was added:
+ ----- Method: FloatTest>>testArcTan (in category 'testing') -----
+ testArcTan
+
+ self assert: ((100 arcTan: 100) closeTo: Float pi / 4).
+ self assert: ((-100 arcTan: 100) closeTo: Float pi / -4).
+ self assert: ((100 arcTan: -100) closeTo: Float pi * 3 / 4).
+ self assert: ((-100 arcTan: -100) closeTo: Float pi * -3 / 4).
+ self assert: ((0 arcTan: 100) closeTo: 0).
+ self assert: ((0 arcTan: -100) closeTo: Float pi).
+ self assert: ((100 arcTan: 0) closeTo: Float pi / 2).
+ self assert: ((-100 arcTan: 0) closeTo: Float pi / -2).
+
+ self assert: ((Float negativeZero arcTan: 100) closeTo: 0).
+ self assert: ((Float negativeZero arcTan: -100) closeTo: Float pi * -1).
+
+ self assert: (0 arcTan: 0) = 0.
+ self assert: (Float negativeZero arcTan: 0) = 0.
+ self assert: ((0 arcTan: Float negativeZero) closeTo: Float pi).
+ self assert: ((Float negativeZero arcTan: Float negativeZero) closeTo: Float pi negated). !