[squeak-dev] The Inbox: KernelTests-nice.238.mcz

commits at source.squeak.org commits at source.squeak.org
Wed May 22 21:25:41 UTC 2013


A new version of KernelTests was added to project The Inbox:
http://source.squeak.org/inbox/KernelTests-nice.238.mcz

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

Name: KernelTests-nice.238
Author: nice
Time: 11 December 2012, 10:46:52.227 pm
UUID: 13fbd67c-313e-40be-83bb-c9fbe9c96d76
Ancestors: KernelTests-nice.237

Assert that ScaledDecimal log and ln should not overflow/underflow.

=============== Diff against KernelTests-nice.237 ===============

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

Item was added:
+ ----- Method: ScaledDecimalTest>>testLog (in category 'tests - mathematical functions') -----
+ testLog
+ 	self assert: ((10 raisedTo: 400) asScaledDecimal log closeTo: 400) description: 'log should be immune to intermediate Float overflow'.
+ 	self assert: ((10 raisedTo: -400) asScaledDecimal log closeTo: -400) description: 'log should be immune to intermediate Float underflow'!



More information about the Squeak-dev mailing list