7 ms·
You can put tests in python's class/method docs. They work wonderfully if you put enough examples to cover most inputs/outputs of the function.
by abdullahkhalids 3y ago
You can put tests in python's class/method docs. They work wonderfully if you put enough examples to cover most inputs/outputs of the function.
- SAI_Peregrinus 3y agoYep, also D and Rust have similar things, and likely other languages. I didn't feel it particularly useful to try to list them all, just to point out that tests & docs are two aspects of the same thing.