[Issue 2630] ddoc should be able to document unittests

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 28 15:34:32 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2630





------- Comment #1 from wbaxter at gmail.com  2009-01-28 17:34 -------
Sounds a lot like doctests that are becoming popular in Python. 
http://en.wikipedia.org/wiki/Doctest

There the roles are reversed from what you are talking about.  Some examples in
the doc are made to run as unit tests, instead of making some unittests into
doc.  I think your version sounds simpler to get working in D, but the other
way seems ultimately more useful to me.  It allows you to interleave the
examples with the documentation of the function more naturally.


-- 



More information about the Digitalmars-d-bugs mailing list