[Issue 12473] Allow version specification for unittests
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 26 06:51:43 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12473
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-03-26 14:50:52 CET ---
version(unittest) ?
This is the workaround I use:
https://github.com/CyberShadow/ae/blob/master/sys/timing.d#L382-L396
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-03-26 14:51:40 CET ---
There is one bit of ambiguity with the design though, what to do about
version(unittest) blocks. E.g.:
-----
version (??)
void testFoo()
{
}
unittest(TestFoo)
{
testFoo();
}
-----
What should the first version declaration look like? Maybe:
-----
version (unittest(TestFoo))
void testFoo()
{
}
unittest(TestFoo)
{
testFoo();
}
-----
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list