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

phospr / fraction / 60
100%

Build:
DEFAULT BRANCH: master
Ran 21 Dec 2016 04:22PM UTC
Jobs 3
Files 3
Run time 16s
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

pending completion
60

Pull #20

travis-ci

web-flow
Add option to skip simplification

Summary
-------
This diff adds a parameter to the constructor of the `Fraction` class
called `$shouldSimplify`. When set to false it skips the last step of
calling the `simplify()` function.

The parameter is defaulted to `true` so there is no change in existing
behavior.

Test Plan
--------
See new unit test.

Questions
---------
- My other thought was making `simplify()` protected so that we could
  subclass it and remove the simplification functionality in a subclass.

Context
-------
We want to be able to validate that a string is "fraction-like", but
keep the format that the string was originally in.
Pull Request #20: Add option to skip simplification

105 of 105 relevant lines covered (100.0%)

95.14 hits per line

Jobs
ID Job ID Ran Files Coverage
1 60.1 21 Dec 2016 04:23PM UTC 0
100.0
Travis Job 60.1
2 60.2 21 Dec 2016 04:22PM UTC 0
100.0
Travis Job 60.2
3 60.3 21 Dec 2016 04:23PM UTC 0
100.0
Travis Job 60.3
Source Files on build 60
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #60
  • Pull Request #20
  • PR Base - master (#55)
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