Python icon indicating copy to clipboard operation
Python copied to clipboard

style: Add doctest execution block to linear_search.py

Open Born-as-Harsha opened this issue 2 months ago • 0 comments

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 avatar Oct 27 '25 02:10 Born-as-Harsha