-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new Formatting classes and corresponding tests #186
Conversation
@ben-cunningham : Really appreciate this request, but I see one issue - the new unit and currency formatters are changing the API by returning four values instead of three. This would break rendering for tables (where formatters are used) ... are you using formatters in some other context? Regardless, if you combine the suffix and units in the UnitFormatter, and combine the currency code and prefix in the CurrencyFormatter, I'll merge everything. Cheers, |
8dd7c53
to
61d31ef
Compare
@tshead2 Thanks! I've hopefully fixed up the issues, the Formatters should just be returning three values now. Is there a way to fix coveralls passing? |
@ben-cunningham BTW, I appreciate you taking the time to add test coverage … take a look at https://coveralls.io/builds/16346816/source?filename=toyplot%2Fformat.py to see the lines (in red) that aren’t covered by the new tests. I generally put Cheers, |
2a772ec
to
f53b1a7
Compare
f53b1a7
to
a19e9b5
Compare
a72e676
to
4e33cc0
Compare
4e33cc0
to
ff9f7b4
Compare
@tshead2 Hey, I've added tests for strings and |
This looks close enough to me, I'll merge it and look into the tests. Many thanks! |
@ben-cunningham - just a heads up that I did some cleanup of the formatter code to reduce repetition. You might want to take a look and confirm that I didn’t break anything for you. I also updated the regression tests for 100% coverage - you might be interested to see how I was able to dramatically reduce the number of steps. Cheers, |
No description provided.