www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15769] New: Unittests example should have titles

https://issues.dlang.org/show_bug.cgi?id=15769

          Issue ID: 15769
           Summary: Unittests example should have titles
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: greeenify gmail.com

We see multiple Examples statement and the title of the snippet is display as a
comment. 

e.g. http://dlang.org/phobos/std_algorithm_sorting.html#sort

Examples:
// Showcase stable sorting
...

Examples:
// Sorting floating-point numbers in presence of NaN
...



Ideally I think we should 
1) only show "Examples" once (easy)
2) get the title from the comment string above the unittest  (maybe trickier)

--
Mar 05 2016