www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - unittest block, imports

reply Regan Heath <regan netwin.co.nz> writes:
unittest {
	import std.random;
}

does not work. :(

I don't need std.random in this module, I just need it for my unittests.

Regan.

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jun 20 2004
parent "Vathix" <vathixSpamFix dprogramming.com> writes:
"Regan Heath" <regan netwin.co.nz> wrote in message
news:opr9xbokja5a2sq9 digitalmars.com...
 unittest {
 import std.random;
 }

 does not work. :(

 I don't need std.random in this module, I just need it for my unittests.

 Regan.

 --
 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
I've run into this a few times. I think something needs to be done about it. Either what you tried, or something with version() maybe.
Jun 21 2004