We have a great deal of handwritten and LLM-generated unit tests, but the test coverage is somewhat spotty: they are spread across at least 3 different files and are rather disorganized, so the coverage is quite difficult to track.
At the same time the SIMD operations have no usage examples, just brief doc string descriptions.
We might be able to slay two birds with one stone by converting the test suite into doctests on the relevant methods. This moves the tests onto the methods themselves and makes coverage far easier to track, and has them double as usage examples in documentation.
We have a great deal of handwritten and LLM-generated unit tests, but the test coverage is somewhat spotty: they are spread across at least 3 different files and are rather disorganized, so the coverage is quite difficult to track.
At the same time the SIMD operations have no usage examples, just brief doc string descriptions.
We might be able to slay two birds with one stone by converting the test suite into doctests on the relevant methods. This moves the tests onto the methods themselves and makes coverage far easier to track, and has them double as usage examples in documentation.