Closed gullsherhussain closed 2 years ago
Thank you for the suggestion. I can see this working well for some APIs that require a few pre-requisite steps to return a meaningful value.
Right now there's some awkwardness in trying to adopt this since:
I'll keep this issue open and revisit this suggestion in the future.
In order to prevent errors, a continuous tested system and make an efficient architecture for CUDA API to run smoothly there is a need for Doctests for the python function
You can avoid crashes, bugs, and the result would be an efficient system
References are :
https://dev.to/perigk/doctests-the-shy-giant-of-testing-modules-3g74 https://pymotw.com/2/doctest/