March 20, 2009 Re: dunit r247 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Keep | Daniel Keep wrote:
> What about this syntax?
>
> check!("% == 3 || % == 5")(foo(5));
>
> This could display:
>
> Expected: (% == 3 || % == 5) for <value of foo(5)>.
>
> Then you don't have to dick about writing classes when you want to test
> something. Rule one of a good API: get out of my way. :D
>
> -- Daniel
On the face of it, that seems reasonable. I'm not certain what I will do in that regard.
|
Copyright © 1999-2021 by the D Language Foundation