Fix Broken isValid Check in Path Components Iterator#103
Conversation
SteveMacenski
left a comment
There was a problem hiding this comment.
The only thing I'd like is for you to confirm to me that you tested before this PR and confirmed the issue in its use in the code. I trust this is a valid solution but I want to make sure there's not some reason I did that which may not be obvious.
Why is the test not failing? https://github.com/open-navigation/opennav_coverage/blob/main/opennav_coverage/test/test_utils.cpp
Sounds good. I've added a quick iteration variable test to the current path components iterator test function. When running the tests with the old isValid check, I get the following from the test log file: This highlights that the iteration loop is going one past the expected amount. Once I added back in the quick fix the test passed |
…#103) * fix: incorrect isValid check * fix: add path component iteration index validation test
This is a really really simple PR to fix the isValid check #102
closes #102