Skip to content

Commit

Permalink
Improve precision of PerMilleTest>>#testCreationShortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 9, 2023
1 parent e1a6005 commit ca4aa12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Buoy-Math-Tests/PerMilleTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ PerMilleTest >> testCreationShortcut [
self
assert: 5 perMille printString equals: '5‰';
assert: 50 perMille equals: 1 / 20;
assert: 5.0 perMille printString equals: '5.0‰';
assert: 50.0 perMille printString equals: '50.0‰';
assert: 50.0 perMille equals: 0.05;
runOnlyInPharo: [
self assert: 5.0s2 perMille printString equals: '5.00s2‰' ];
self assert: 50.0s2 perMille printString equals: '50.00s2‰' ];
runOnlyInGemStone64: [
self assert: 5.0s2 perMille printString equals: '5.00‰' ];
self assert: 50.0s2 perMille printString equals: '50.00‰' ];
assert: 50.0s2 perMille equals: 0.05s2;
runOnlyInPharo: [
self assert: (1 / 2) perMille printString equals: '(1/2)‰' ];
Expand Down

0 comments on commit ca4aa12

Please sign in to comment.