ba-st / Aconcagua

Measures as first class objects, that is, an object that encapsulates a number with its unit.
MIT License
14 stars 3 forks source link

Unit Printing Hook for Subclasses & Test #20

Closed seandenigris closed 4 years ago

seandenigris commented 4 years ago

Gives more flexibility where the domain needs it e.g.

| unit measure |

unit := DummyDollarUnit named: 'dollar'.
measure := Measure amount: 5 unit: unit.
self assert: measure printString equals: '$5.00'.
coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 81


Files with Coverage Reduction New Missed Lines %
source/Aconcagua-Core/Evaluation.class.st 4 38.29%
source/Aconcagua-Tests/MeasureBagTest.class.st 4 92.08%
source/Aconcagua-Core/InvalidUnaryOperationException.class.st 8 70.37%
source/Aconcagua-Core/InvalidBinaryOperationException.class.st 12 63.64%
<!-- Total: 28 -->
Totals Coverage Status
Change from base Build 78: -0.3%
Covered Lines: 8318
Relevant Lines: 8990

💛 - Coveralls
gcotelli commented 4 years ago

LGTM!