On Sat, Sep 12, 2009 at 7:09 AM, Justin Johansson
<[email protected]> wrote:
> Lutger Wrote:
>
>> I'm rewriting my testing stuff at the moment, I hoped to use the runtime
>> features to be able to user regular asserts too but that didn't work out.
>>
>> Do you know you can get rid of the need to pass __FILE__ and __LINE__?
You can use a string mixin. That's the only way I know of in D1. But
then the syntax becomes something like
mixin(expectEquals("message"));
The expectEquals then has to return a string of code which contains
the __FILE__ and __LINE__.
--bb