A module-level unittest statement( uses ()
instead of {}
) for single asserts
, with an optional string message
unittest(1==1);
unittest(1==1,"math broke");
https://gist.github.com/crazymonkyyy/2afa7ae1402cd246fb98bdb86dd19605
Thread overview | |||||
---|---|---|---|---|---|
|
October 15 Statement Unittest [DRAFT] | ||||
---|---|---|---|---|
| ||||
A module-level unittest statement( uses
https://gist.github.com/crazymonkyyy/2afa7ae1402cd246fb98bdb86dd19605 |
October 15 Re: Statement Unittest [DRAFT] | ||||
---|---|---|---|---|
| ||||
Posted in reply to monkyyy | On Tuesday, 15 October 2024 at 14:37:24 UTC, monkyyy wrote: >https://gist.github.com/crazymonkyyy/2afa7ae1402cd246fb98bdb86dd19605 For "Prior Work", I'd say the most obvious thing to cite is the shortened syntax for
Spec links: |
October 17 Re: Statement Unittest [DRAFT] | ||||
---|---|---|---|---|
| ||||
Posted in reply to monkyyy | On Tuesday, 15 October 2024 at 14:37:24 UTC, monkyyy wrote: >A module-level unittest statement( uses
https://gist.github.com/crazymonkyyy/2afa7ae1402cd246fb98bdb86dd19605 This is a pretty cool idea. |