[squeak-dev] The Trunk: KernelTests-nice.186.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Apr 23 20:05:46 UTC 2011
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.186.mcz
==================== Summary ====================
Name: KernelTests-nice.186
Author: nice
Time: 23 April 2011, 10:05:24.96 pm
UUID: 45467100-f558-5d46-840b-45d284b47b9a
Ancestors: KernelTests-nice.185
Fix a broken complex test
=============== Diff against KernelTests-nice.185 ===============
Item was changed:
----- Method: ComplexTest>>testSin (in category 'tests') -----
testSin
| c c2 |
c := (2 + 0 i).
self assert: (c sin real closeTo: c real sin).
self assert: (c sin imaginary closeTo: 0).
c := 2 + 3 i.
+ c2 := c sin squared + c cos squared.
+ self assert: (c2 real closeTo: 1).
+ self assert: (c2 imaginary closeTo: 0).
- c := c sin squared + c cos squared.
- self assert: (c real closeTo: 1).
- self assert: (c imaginary closeTo: 0).
c2 := c i exp - c i negated exp / 2 i.
self assert: (c sin real closeTo: c2 real).
self assert: (c sin imaginary closeTo: c2 imaginary).!
More information about the Squeak-dev
mailing list
|