statement unittest
Dom DiSc
dominikus at scherkl.de
Fri Mar 29 10:27:51 UTC 2024
On Saturday, 23 March 2024 at 16:28:14 UTC, Nick Treleaven wrote:
> On Saturday, 23 March 2024 at 09:43:20 UTC, Dom DiSc wrote:
>> That's pretty much as short as your proposal and even more
>> readable.
>
> Then you can't have documented unittests for each function.
If you want to generate documentation from this, every test
should at least have one line of comment (aka "Documentation"),
so can't be a one-liner anyway.
And especially in the description of some closely related
functions I would prefer one unittest block testing all of them
over the scattered tests between each function declaration.
More information about the dip.ideas
mailing list