Skip to content

Conversation

@sashass1315
Copy link
Contributor

AssertList was not checking the last adjacent key pair and did nothing for slices of length two because the loop used len(keys)-2 as an upper bound. This made ordering asserts weaker than intended and could hide issues at the end of the key list when assertions are enabled. The loop bound is changed to len(keys)-1 so that every adjacent pair, including the final one, is validated.

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.

1 participant