[Issue 2630] ddoc should be able to document unittests

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 30 22:42:39 PDT 2012


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-30 22:42:22 PDT ---
(In reply to comment #2)
> Implementing ddoc'ed unittests entails that each unittest must have an owner
> (the preceding declaration) to put it in the right HTML tag. That would also
> solve the unittest name problem (bug 2749) with 'owner.stringof'.

A simple workaround is to look for the next element in the members list to see
if it's a unittest declaration. If it is, and it's commented and not private,
we can insert a "----%s----" code block in the previous element. This would be
done until a non-unittest block is found, or until a private/non-commented one
is found.

It's a ~20-line change to implement.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list