From ca4aa1277a100a0047f4788cfbd73dcd496564b7 Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Wed, 9 Aug 2023 17:12:01 -0300 Subject: [PATCH] Improve precision of PerMilleTest>>#testCreationShortcut --- source/Buoy-Math-Tests/PerMilleTest.class.st | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Buoy-Math-Tests/PerMilleTest.class.st b/source/Buoy-Math-Tests/PerMilleTest.class.st index d9d03dc..43bd2f0 100644 --- a/source/Buoy-Math-Tests/PerMilleTest.class.st +++ b/source/Buoy-Math-Tests/PerMilleTest.class.st @@ -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)‰' ];