[Issue 14383] New: documented unittests don't work for module declaration
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Mar 31 10:01:51 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14383
Issue ID: 14383
Summary: documented unittests don't work for module declaration
Product: D
Version: unspecified
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
Sometimes it's useful to have an introductory example for a module, but
documented unittest currently don't work for that.
cat > mod.d << CODE
/**
My Module
*/
module mod;
///
unittest
{
auto example = "usage";
}
CODE
dmd -D -c -o- mod
Should produce the same output as this.
cat > mod.d << CODE
/**
My Module
----
auto example = "usage";
----
*/
module mod;
CODE
--
More information about the Digitalmars-d-bugs
mailing list