[Issue 9730] Allow ddoc unittests to remotely reference declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 16 16:43:40 PDT 2013


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



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-16 16:43:38 PDT ---
This feature is also important if we want to move our tests into a separate
module, but at the same time allow these tests to appear in the documentation.

For example:

-----
module mod.math;

///
int sum(int x, int y);
-----

-----
module mod.test;

/// @(mod.math.sum)
unittest
{
    assert(sum(2, 2) == 4);
}
-----

In non-trivial modules which span hundreds (or thousands) of lines, it would be
useful to be able to extract the tests into another directory, while still
being able to use the documented unittests feature.

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