[Issue 9473] DDoc'd unittests should not add Example block to generated docs if there's already an Example block

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 7 16:35:03 PST 2013


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


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

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


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-07 16:35:02 PST ---
The problem is there could already be multiple example sections, for example
(pardon the pun):

/**
func
Example:
---
foo();
---

Example:
---
bar();
---
*/
void func() {  }

The output of this is:

void func();
    func

    Example:

    foo();



    Example:

    bar();


It seemed only natural to do the same thing with unittest.

-- 
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