Skip to content

Commit

Permalink
Improved test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Dec 21, 2022
1 parent 2a5fd34 commit 3d4bb49
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,16 @@ public static Stream<Arguments> emptyImplementations()
{
impls.add(new ArrayTrie<Integer>(caseSensitive, 128));
impls.add(new ArrayTernaryTrie<Integer>(caseSensitive, 128));
impls.add(new TreeTrie<>(caseSensitive));

TreeTrie<Integer> treeTry = new TreeTrie<>(caseSensitive);
// create tree and then delete keys
treeTry.put("abc", -1);
treeTry.put("ade", -2);
treeTry.put("a[]", -3);
treeTry.remove("abc");
treeTry.remove("ade");
treeTry.remove("a[]");
impls.add(treeTry);
}

return impls.stream().map(Arguments::of);
Expand Down

0 comments on commit 3d4bb49

Please sign in to comment.