statement unittest
monkyyy
crazymonkyyy at gmail.com
Fri Apr 5 17:34:43 UTC 2024
On Friday, 5 April 2024 at 15:38:28 UTC, Walter Bright wrote:
> On 3/21/2024 12:39 PM, monkyyy wrote:
>> i.e. `unittest(1==1)` would compile
>
> It's an interesting idea, but it would close the door on ever
> having arguments to unittest blocks.
why?
```d
unittest identity(T)(T i){
assert(i==i);
}
identity(1);
identity(13.37);
```
```d
unittest(1==1,"math broke");
```
I dont think unittest syntax is constrained much
More information about the dip.ideas
mailing list