mirror of https://github.com/deavmi/niknaks
Compare commits
2 Commits
bf0d9569c6
...
ba4eb499ab
Author | SHA1 | Date |
---|---|---|
Tristan B. Velloza Kildaire | ba4eb499ab | |
Tristan B. Velloza Kildaire | 1caf6eaf10 |
|
@ -19,6 +19,16 @@ version(unittest)
|
||||||
import std.stdio : writeln;
|
import std.stdio : writeln;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version(unittest)
|
||||||
|
{
|
||||||
|
import std.functional : toDelegate;
|
||||||
|
|
||||||
|
private void DebugTouch(T)(Tree!(T) node)
|
||||||
|
{
|
||||||
|
writeln("Touching tree node ", node);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an entry of
|
* Represents an entry of
|
||||||
* some value of type `V`
|
* some value of type `V`
|
||||||
|
@ -820,18 +830,9 @@ public class Tree(T)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
version(unittest)
|
* Test out usage of the tree
|
||||||
{
|
*/
|
||||||
import std.functional : toDelegate;
|
|
||||||
import std.stdio : writeln;
|
|
||||||
|
|
||||||
private void DebugTouch(T)(Tree!(T) node)
|
|
||||||
{
|
|
||||||
writeln("Touching tree node ", node);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
unittest
|
unittest
|
||||||
{
|
{
|
||||||
Tree!(string) treeOfStrings = new Tree!(string)("Top");
|
Tree!(string) treeOfStrings = new Tree!(string)("Top");
|
||||||
|
|
Loading…
Reference in New Issue