Re:Pyret: A new programming language from the creators of Ra...
by qznc on Saturday November 09, 2013 @02:32PM
(#6702794)
I think you are both right. D even takes it to the next logical step: Present the unit tests as examples in the API documentation (like Doxygen,Javadoc). It means the API examples are kept in sync.
http://qznc.github.io/d-tut/testing.html