Skip to content

Commit

Permalink
Graph (unittests)
Browse files Browse the repository at this point in the history
- Added tests for `opIndex(size_t)`
  • Loading branch information
deavmi committed May 4, 2024
1 parent 0525bfb commit 9610689
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/niknaks/containers.d
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,9 @@ unittest
treeOfStrings.appendNode(subtree_2);
treeOfStrings.appendNode(subtree_3);

assert(treeOfStrings.opIndex!(Graph!(string))(0) == subtree_1);
assert(treeOfStrings.opIndex!(Graph!(string))(1) == subtree_2);
assert(treeOfStrings.opIndex!(Graph!(string))(2) == subtree_3);

InclusionStratergy!(string) strat = toDelegate(&Always!(string));
TouchStratergy!(string) touch = toDelegate(&DebugTouch!(string));
Expand Down

0 comments on commit 9610689

Please sign in to comment.