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

commits at source.squeak.org commits at source.squeak.org
Thu Mar 13 00:53:06 UTC 2014


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

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

Name: KernelTests-nice.262
Author: nice
Time: 13 March 2014, 1:52:32.328 am
UUID: c70b95a4-48a3-47aa-b9e8-b6abdbf8004f
Ancestors: KernelTests-nice.261

Assert that nthRoot is exact on more cases.
Note how current implementation fails.

=============== Diff against KernelTests-nice.261 ===============

Item was added:
+ ----- Method: IntegerTest>>testNthRootExactness (in category 'tests - mathematical functions') -----
+ testNthRootExactness
+ 	| inexactRoots largeExactPowersOf6 |
+ 	largeExactPowersOf6 := (2 to: 100) collect: [:k | k raisedTo: 66].
+ 	inexactRoots := largeExactPowersOf6 reject: [:e | (e nthRoot: 6) isInteger].
+ 	self assert: inexactRoots isEmpty description: 'Failed to find the exact 6th root of these numbers'!



More information about the Squeak-dev mailing list