[Issue 15769] New: Unittests example should have titles
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Mar  5 19:11:19 PST 2016
    
    
  
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 at puremagic.com
          Reporter: greeenify at 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)
--
    
    
More information about the Digitalmars-d-bugs
mailing list