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

Test domains #1

Merged
merged 5 commits into from
Jan 6, 2014
Merged

Test domains #1

merged 5 commits into from
Jan 6, 2014

Conversation

eriknw
Copy link
Owner

@eriknw eriknw commented Jan 6, 2014

Since we remap the API between different project, I want to directly compare output of equivalent functions to verify that the mappings are correct. This branch is a first stab effort to do this. It is a bit rough around the edges (such as possible dependence on floating point approximation error affecting results) and the code isn't particularly pretty, but it is much better than having nothing. Hopefully the tests aren't hyper-sensitive resulting in sporadic failures.

By doing this, I learned that math.fmod is very finicky, may not be consistent across platforms, and probably isn't the function that the user expects (which would be the mod, or %, function), so it has been removed.

This will also allow for much higher confidence if other API mappings are developed.

eriknw added a commit that referenced this pull request Jan 6, 2014
@eriknw eriknw merged commit e7b8981 into master Jan 6, 2014
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling ca8aa76 on test_domains into 30fb799 on master.

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.

2 participants