Skip to content

Added test to validate out-of-order popping in queue#114

Merged
diondokter merged 1 commit intotweedegolf:masterfrom
Wassasin:test/iter_pop_out_of_order
Jan 8, 2026
Merged

Added test to validate out-of-order popping in queue#114
diondokter merged 1 commit intotweedegolf:masterfrom
Wassasin:test/iter_pop_out_of_order

Conversation

@Wassasin
Copy link
Contributor

@Wassasin Wassasin commented Jan 8, 2026

Scrolling through the test cases for queue, I could not find a testcase using iter which selectively pops some items, and leaves some of them intact. Strictly speaking this is not really queue-like behaviour but the current API allows for it. This test demonstrates that it functions as intented.

@diondokter
Copy link
Member

Cool thanks!

This is also already tested by the fuzzer. If something was wrong it would've been caught there.
But it's good to have a real test for it too.

@diondokter diondokter merged commit 9bbf507 into tweedegolf:master Jan 8, 2026
5 checks passed
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