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