Skip to content

Commit

Permalink
Cleanup unittests a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer committed Apr 6, 2009
1 parent ee45f26 commit 2e46782
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions mordor/common/config.d
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,8 @@ private:
static ConfigVarBase[string] _vars;
}

import tango.io.Stdout;
unittest
{
Stdout.formatln("in config unit test");
ConfigVar!(int) intVar = Config.lookup("myvar", 5, "mysetting");

assert(intVar.val == 5);
Expand Down
2 changes: 1 addition & 1 deletion mordor/common/containers/linkedlist.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private:
}

public:
struct Iterator
static struct Iterator
{
public:
T val() { return _node._val; }
Expand Down
4 changes: 1 addition & 3 deletions mordor/common/unittests.d
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ module mordor.common.unittests;

import mordor.common.config;
import mordor.common.containers.linkedlist;

import tango.io.Stdout;
import mordor.common.containers.redblacktree;

void main()
{
Stdout.formatln("in main");
}
2 changes: 1 addition & 1 deletion mordor/kalypso/mirror.d
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void mirror(IObject src, IObject dst)

debug (mirror) {
import tango.util.log.AppendConsole;

import mordor.common.config;
import mordor.common.log;
import mordor.kalypso.vfs.manager;
Expand Down

0 comments on commit 2e46782

Please sign in to comment.