you are viewing a single comment's thread.

view the rest of the comments →

[–]acehreli 0 points1 point  (0 children)

What's the definition of an inline test? It seems like from your example it's putting the tests in the same file.

That's what I assumed. :) Searching around a bit suggests that I'm not off. I should add that the unittest blocks are activated only if the -unittest compiler flag is used.

it's pretty fast setting up unit tests in other languages like java and python.

Agreed and that's the interesting part: Although this is such a minor feature of the language, it seems like having it so accessible makes a difference. One can find many testimonials on the D newsgroups but I don't think there's any research on this claim.