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

library-tests gives cryptic error when no path is supplied #3697

Closed
quinnchr opened this issue Feb 13, 2017 · 0 comments
Closed

library-tests gives cryptic error when no path is supplied #3697

quinnchr opened this issue Feb 13, 2017 · 0 comments

Comments

@quinnchr
Copy link
Contributor

I was working on adding some tests to library/nearest and it took me an embarrassingly long time to figure out why I couldn't get them to pass, mainly due to this cryptic error message:

unknown location(0): fatal error in "test_nearest_response": std::out_of_range: vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)

Which is of course because I wasn't supplying a path to the test data and get_args() was returning an empty vector. I think a check should be added to get_args with a more meaningful error message and the unit testing docs should be more informative about how to run the tests.

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