• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

brick / money / 131 / 4
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: Historical-currencies
DEFAULT BRANCH: master
Ran 24 Sep 2017 10:42PM UTC
Files 26
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Sep 2017 10:41PM UTC coverage: 85.273% (-3.9%) from 89.135%
131.4

push

travis-ci

BenMorel
Throw exception when adding or subtracting monies in different contexts

As discussed in the issue tracker, operations involving monies in different contexts may be a sign of a potential defect, even if the result could fit in the context of the left operand. Plus, allowing this behaviour by default would mean that A+B and B+A could return different results (two equal results with different contexts, or one result and one exception).

It is usually better to explicitly juggle contexts if required, or force the operation explicitly using ->getAmount(), as suggested by the exception message.

359 of 421 relevant lines covered (85.27%)

23.59 hits per line

Source Files on job 131.4
  • Tree
  • List 0
  • Changed 16
  • Source Changed 1
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 131
  • Travis Job 131.4
  • 70e25ba1 on github
  • Prev Job for on embedded-context (#130.1)
  • Next Job for on embedded-context (#132.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc