Skip to content
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

Fixed arithmetic operations and ToString() for non-english systems #5

Merged
merged 2 commits into from
Sep 27, 2014

Conversation

ap0llo
Copy link

@ap0llo ap0llo commented Sep 25, 2014

Arithmetic operations used to pass the "Bits" value to the constructor of the newly constructed ByteSize instance instead of "Bytes" resulting in wrong calculations. Operations now pass the right value to the constructor.
Added some simple test cases to ensure arithmetic functions now work as expected.

ToString() is now culture-invariant. ToStringMethod tests are now successful on non-english systems

@ap0llo ap0llo changed the title Fixed arithmetic operations and added tests for them Fixed arithmetic operations and ToString() for non-english systems Sep 25, 2014
omar added a commit that referenced this pull request Sep 27, 2014
Fixed arithmetic operations and ToString() for non-english systems
@omar omar merged commit cf1e761 into omar:master Sep 27, 2014
@omar
Copy link
Owner

omar commented Sep 27, 2014

Thank Andreas.

@GeorgeHahn, @MehdiK - this would need to be transplanted to Humanizer.

@MehdiK
Copy link

MehdiK commented Sep 27, 2014

Thanks a lot for the heads up @omar :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants