From 00085798ebe8f2503954dafe1519086070aefcf6 Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Wed, 9 Aug 2023 16:54:33 -0300 Subject: [PATCH] Update testCreationShortcut --- source/Buoy-Math-Tests/PerMilleTest.class.st | 7 ++----- source/Buoy-Math-Tests/PercentageTest.class.st | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/source/Buoy-Math-Tests/PerMilleTest.class.st b/source/Buoy-Math-Tests/PerMilleTest.class.st index 63b159d..d9d03dc 100644 --- a/source/Buoy-Math-Tests/PerMilleTest.class.st +++ b/source/Buoy-Math-Tests/PerMilleTest.class.st @@ -65,11 +65,8 @@ PerMilleTest >> testCreationShortcut [ assert: 50.0 perMille equals: 0.05; runOnlyInPharo: [ self assert: 5.0s2 perMille printString equals: '5.00s2‰' ]; - runOnlyInGemStone64: [ "Scaled decimals printString ommit scale (bug in GS)" - self - should: [ - self assert: 5.0s2 perMille printString equals: '5.00s2‰' ] - raise: TestFailure ]; + runOnlyInGemStone64: [ + self assert: 5.0s2 perMille printString equals: '5.00‰' ]; assert: 50.0s2 perMille equals: 0.05s2; runOnlyInPharo: [ self assert: (1 / 2) perMille printString equals: '(1/2)‰' ]; diff --git a/source/Buoy-Math-Tests/PercentageTest.class.st b/source/Buoy-Math-Tests/PercentageTest.class.st index 223ebae..bfbddb0 100644 --- a/source/Buoy-Math-Tests/PercentageTest.class.st +++ b/source/Buoy-Math-Tests/PercentageTest.class.st @@ -65,11 +65,8 @@ PercentageTest >> testCreationShortcut [ assert: 5.0 percent equals: 0.05; runOnlyInPharo: [ self assert: 5.0s2 percent printString equals: '5.00s2%' ]; - runOnlyInGemStone64: [ "Scaled decimals printString ommit scale (bug in GS)" - self - should: [ - self assert: 5.0s2 percent printString equals: '5.00s2%' ] - raise: TestFailure ]; + runOnlyInGemStone64: [ + self assert: 5.0s2 percent printString equals: '5.00%' ]; assert: 5.0s2 percent equals: 0.05s2; runOnlyInPharo: [ self assert: (1 / 2) percent printString equals: '(1/2)%' ];