Detached unit tests
Dom DiSc
dominikus at scherkl.de
Wed May 1 13:44:24 UTC 2024
On Wednesday, 1 May 2024 at 12:55:01 UTC, Timon Gehr wrote:
>> For a strawman syntax, let's do what everyone does ...
>> overload `static`!
>
> Looks useful, as usually you want to test the API. Maybe this
> should have been the default behavior for unit tests with
> `public` visibility.
No, white-box test is correct as default, as black-box tests
shouldn't be in the same file anyway. So, if you want your
"logically black-box" tests in the same file, it is good that you
have to explicitly opt in.
More information about the dip.ideas
mailing list