Compare commits

...

2 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire ba4eb499ab Tree (unittests)
- Moved import
2024-04-27 17:16:31 +02:00
Tristan B. Velloza Kildaire 1caf6eaf10 Tree (unittests)
- Added docs
2024-04-27 17:13:25 +02:00
1 changed files with 13 additions and 12 deletions

View File

@ -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");