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

commits at source.squeak.org commits at source.squeak.org
Fri Jun 4 01:34:51 UTC 2010


David T. Lewis uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.151.mcz

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

Name: KernelTests-nice.151
Author: nice
Time: 28 May 2010, 9:30:59.204 pm
UUID: a305c844-71d8-eb4e-85d7-c0bce7b20dc7
Ancestors: KernelTests-ul.150

After recent vwnc post, check whether LargeInteger ln overflows.
Same for Fraction with LargeInteger.

=============== Diff against KernelTests-ul.150 ===============

Item was added:
+ ----- Method: IntegerTest>>testLn (in category 'tests - mathematical functions') -----
+ testLn
+ 	self assert: (100 ln closeTo: 10 ln*2).
+ 	self assert: ((2 raisedTo: Float emax + 3) ln closeTo: 2 ln*(Float emax + 3)) description: 'Integer>>ln should not overflow'!

Item was added:
+ ----- Method: FractionTest>>testLn (in category 'tests - mathematical functions') -----
+ testLn
+ 	self assert: ((1/100) ln closeTo: -2/2 ln).
+ 	self assert: (((2 raisedTo: Float emax + 11)/3) ln closeTo: (Float emax + 11)*2 ln - 3 ln) description: 'Fraction>>ln should not overflow'.
+ 	self assert: ((3/(2 raisedTo: Float precision - Float emin)) ln closeTo: (Float emin - Float precision)*2 ln + 3 ln) description: 'Fraction>>ln should not underflow'!



More information about the Packages mailing list