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

Instances of ArithmeticObject on GS64 are now invariant #34

Closed ytsejam78 closed 7 months ago

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.93%. Comparing base (41a3c15) to head (8469eca).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release-candidate #34 +/- ## ================================================== Coverage 93.93% 93.93% ================================================== Files 57 57 Lines 10061 10062 +1 ================================================== + Hits 9451 9452 +1 Misses 610 610 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ytsejam78 commented 7 months ago

Tested with:

UserGlobals at: #InvariantMeasureTest put: ((BaseUnit named: 'metro' sign: 'm') with: 1).
System commitTransaction.
(UserGlobals at: #InvariantMeasureTest) instVarAt: 1 put: 2.

raises error: "a ArgumentTypeError occurred (error 2031), Attempt to modify invariant object, aMeasure"