std.serialization: pre-voting review / discussion

Dicebot public at dicebot.lv
Wed Aug 14 00:15:48 PDT 2013


On Wednesday, 14 August 2013 at 02:32:20 UTC, Jonathan M Davis 
wrote:
> In general, the tests should be right after the functions that 
> they're testing
> and not in a separate file. I don't know that it's never 
> appropriate to put the
> tests in a separate file, but none of Phobos does this right 
> now, and I think
> that a very good reason is needed for doing it. I also don't 
> know that it
> works very well with how the Posix makefiles compile and run 
> each module's unit
> tests separately.
>
> - Jonathan M Davis

There have been no real packages in Phobos so far. Tricky part 
comes when you need to test some functionality that is split 
across several modules - those are technically not _unit_ tests 
and do not belong to any specific module. I don't know what is 
the right approach here but I doubt existing practice can be 
taken blindly.


More information about the Digitalmars-d mailing list