[Issue 17882] New: [The D Style] unittest attributes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 7 11:35:25 UTC 2017


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

          Issue ID: 17882
           Summary: [The D Style] unittest attributes
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: kroeplin.d at googlemail.com

"Every unittest should be annotated (e.g. pure nothrow @nogc @safe unittest {
... }) to ensure the existence of attributes on the templated function."

But, templated functions should not be annotated. So, do you mean "... on a
non-templated function"? Or maybe "... on the tested function"?

--


More information about the Digitalmars-d-bugs mailing list