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.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale Author has not responded to the comments for over 2 weeks label Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Author has not responded to the comments for over 2 weeks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant