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

Give acceptable range on assertion failure #78

Open
gsnedders opened this issue Feb 14, 2022 · 0 comments
Open

Give acceptable range on assertion failure #78

gsnedders opened this issue Feb 14, 2022 · 0 comments

Comments

@gsnedders
Copy link

Currently, the output is indistinguishable from assert_eq!'s:

thread 'bsf::tests::score_examples' panicked at 'assert_ulps_eq!(scores[0], 590.0798357956826, max_ulps = 1)

    left  = 590.0798357956824
    right = 590.0798357956826

', src/bsf.rs:354:9

It would be nicer to give allowable ranges for both left/right based on the variance allowed.

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

No branches or pull requests

1 participant