Skip to content

Commit

Permalink
Update testCreationShortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 9, 2023
1 parent 6da57fe commit 0008579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions source/Buoy-Math-Tests/PerMilleTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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)‰' ];
Expand Down
7 changes: 2 additions & 5 deletions source/Buoy-Math-Tests/PercentageTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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)%' ];
Expand Down

0 comments on commit 0008579

Please sign in to comment.