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

Iterator assertion #152

Closed
MartinDelille opened this issue Nov 18, 2019 · 1 comment
Closed

Iterator assertion #152

MartinDelille opened this issue Nov 18, 2019 · 1 comment

Comments

@MartinDelille
Copy link
Contributor

Is there a better way to do that:

auto my_iterator =  my_list.begin();
...
AssertThat(my_iterator == my_list.end(), IsTrue());
@MartinDelille
Copy link
Contributor Author

It doesn't even work.

AssertThat(my_iterator, Is().EqualTo(my_list.end)) seems fine.

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