Skip to content

Conversation

@Monisha-204
Copy link
Contributor

Description

This pull request adds comprehensive doctests for the selection_sort function to ensure its correctness across various edge cases. The implementation remains unchanged, but the added tests improve the reliability and maintainability of the codebase.

Changes Made

Added doctests to selection_sort_doctest.py covering the edge cases empty list, single element list, list with duplicates etc.

Testing

  • All doctests pass successfully, verifying the selection_sort function handles all specified edge cases correctly.
  • Run python selection_sort_doctest.py to execute the doctests locally.

@geekcomputers geekcomputers merged commit 411c45b into geekcomputers:master Sep 25, 2025
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