[Pkg] The Trunk: KernelTests-nice.263.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Mar 15 13:54:43 UTC 2014


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

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

Name: KernelTests-nice.263
Author: nice
Time: 15 March 2014, 2:54:09.654 pm
UUID: fe4da289-e902-4c1e-b0a7-18df9444d488
Ancestors: KernelTests-nice.262

Rename misleading variable (powers of 6 are 6^0, 6^1, 6^2, ... we want 2^6, 3^6, etc...)
Make a bit more explicit that they are raised to 6.

=============== Diff against KernelTests-nice.262 ===============

Item was changed:
  ----- Method: IntegerTest>>testNthRootExactness (in category 'tests - mathematical functions') -----
  testNthRootExactness
+ 	| inexactRoots largeRaisedTo6 |
+ 	largeRaisedTo6 := (2 to: 100) collect: [:k | (k raisedTo: 11) raisedTo: 6].
+ 	inexactRoots := largeRaisedTo6 reject: [:e | (e nthRoot: 6) isInteger].
- 	| 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 Packages mailing list