The Inbox: KernelTests-mtf.294.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: KernelTests-mtf.294.mcz

commits-2
A new version of KernelTests was added to project The Inbox:
http://source.squeak.org/inbox/KernelTests-mtf.294.mcz

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

Name: KernelTests-mtf.294
Author: mtf
Time: 2 May 2015, 12:38:13.849 pm
UUID: dab760b9-5993-4b22-8b98-855fe72d8117
Ancestors: KernelTests-nice.293

Copied Number >> #round: from Pharo. One of 3 methods needed to make the Artefact pdf library work on squeak: https://sites.google.com/site/artefactpdf/

=============== Diff against KernelTests-nice.293 ===============

Item was added:
+ ----- Method: FloatTest>>testRounding (in category 'tests - rounding') -----
+ testRounding
+         "
+         self debug: #testRounding
+         "
+
+         self assert: (10.1234 round: 2) = 10.12.
+         self assert: (10.1234 round: 0) = 10!

Item was added:
+ ----- Method: FractionTest>>testRounding (in category 'tests - rounding') -----
+ testRounding
+         "
+         self debug: #testRounding
+         "
+
+         self assert: ((6/90) round: 2) equals: 0.07!

Item was added:
+ ----- Method: IntegerTest>>testRounding (in category 'test - rounding') -----
+ testRounding
+         "
+         self debug: #testRounding
+         "
+
+         self assert: (5 round: 2) equals: 5!