Skip to content

Comments

style: Add doctest execution block to linear_search.py#13775

Closed
Born-as-Harsha wants to merge 2 commits intoTheAlgorithms:masterfrom
Born-as-Harsha:feat/linear-search
Closed

style: Add doctest execution block to linear_search.py#13775
Born-as-Harsha wants to merge 2 commits intoTheAlgorithms:masterfrom
Born-as-Harsha:feat/linear-search

Conversation

@Born-as-Harsha
Copy link

Adds the standard boilerplate code to allow the existing test cases to run.

Changes include:

  • Included the required execution block (if __name__ == '__main__':) to call doctest.testmod().

This ensures the algorithm is fully compliant with the repository's automatic testing standards.

@Born-as-Harsha Born-as-Harsha closed this by deleting the head repository Dec 21, 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.

1 participant