Skip to content

Add empty vector test for bubble sort#3205

Open
Shreyansh-dev180 wants to merge 1 commit into
TheAlgorithms:masterfrom
Shreyansh-dev180:add-empty-vector-test
Open

Add empty vector test for bubble sort#3205
Shreyansh-dev180 wants to merge 1 commit into
TheAlgorithms:masterfrom
Shreyansh-dev180:add-empty-vector-test

Conversation

@Shreyansh-dev180

Copy link
Copy Markdown

Summary

This PR adds a self-test for an empty std::vector in the bubble sort implementation.

Why

The existing tests cover several input cases such as single-element vectors, duplicate values, floating-point values, characters, strings, and pairs, but do not verify behavior for an empty vector.

This change extends the test coverage with a common edge case without modifying the algorithm itself.

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