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

Bugfix of test nearests #4

Merged
merged 2 commits into from
Jul 24, 2021
Merged

Bugfix of test nearests #4

merged 2 commits into from
Jul 24, 2021

Conversation

u1roh
Copy link
Owner

@u1roh u1roh commented Jul 24, 2021

fix test_nearests() for #2

RReverser and others added 2 commits May 22, 2021 23:27
Instead of using completely random floating numbers, use stepped ones as this helps catch some interesting edge cases when those numbers start overlap.

E.g. with this change getting right away:
```
---- tests::test_nearests stdout ----
thread 'tests::test_nearests' panicked at 'assertion failed: `(left == right)`
  left: `8`,
 right: `5`', src\tests.rs:35:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

(fixes are not included in this PR)
@u1roh u1roh merged commit 61b27ed into main Jul 24, 2021
@u1roh u1roh deleted the bugfix-of-test_nearests branch August 16, 2021 11:06
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