Request for pre-review: std.serialization/orange
Jacob Carlborg
doob at me.com
Fri Sep 30 09:27:47 PDT 2011
On 2011-09-30 18:09, Jonathan M Davis wrote:
> That can be done easily enough with a version block with a version specific to
> running longer or shorter tests. No additional framework is necessary. Don
> has already brought it up in the Phobos newsgroup, but it's unclear whether
> we're going to do anything about it. The main problem is the compile time, not
> the run time, so it's ultimately a compiler issue. Templates and CTFE in
> particular make the whole thing slower.
Ok, I see.
Phobos is like Boost, everything is templates, that's what we get.
Compiling my unit tests with D1 takes about 0.7 seconds, using D2 it
takes about 1.4 seconds.
> Now, if you have unit testing each function individually doesn't work very
> well, and if you have to do a bunch of setup for any testing, then the
> situation is a bit different, but you could probably just stick all of the
> tests at the end of the file then, where they're then separate from the code.
>
> - Jonathan M Davis
I had all the unit tests in one module at first, but I thought it was
too much to have in one module and now I have several more unit tests.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list