[Pkg] The Trunk: KernelTests-nice.420.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Apr 24 14:47:18 UTC 2022
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.420.mcz
==================== Summary ====================
Name: KernelTests-nice.420
Author: nice
Time: 24 April 2022, 4:47:16.037785 pm
UUID: e3105d5f-ab18-45ba-bc8c-634d1b07d39d
Ancestors: KernelTests-ct.419
Test Complex sqrt
=============== Diff against KernelTests-ct.419 ===============
Item was added:
+ ----- Method: ComplexTest>>testSqrt (in category 'tests') -----
+ testSqrt
+ -3 to: 3 do: [:re | -2 to: 2 do: [:im |
+ | c s t |
+ c := re asFloat + im asFloat i.
+ s := c sqrt.
+ t := s squared.
+ self assert: (t real - c real) abs / 4 < c abs asFloat ulp.
+ self assert: (t imaginary - c imaginary) abs / 4 < c abs asFloat ulp.
+ self assert: s imaginary signBit = c imaginary signBit]]!
More information about the Packages
mailing list