summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/trie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/trie.c b/tests/trie.c
index e687f96..6ea94a2 100644
--- a/tests/trie.c
+++ b/tests/trie.c
@@ -70,7 +70,7 @@ int main(void) {
{
size_t i = 0;
- TRIE_FOR_EACH(&trie, leaf) {
+ for_trie (leaf, &trie) {
bfs_verify(leaf == trie_find_str(&trie, keys[i]));
bfs_verify(!leaf->prev || leaf->prev->next == leaf);
bfs_verify(!leaf->next || leaf->next->prev == leaf);
@@ -107,7 +107,7 @@ int main(void) {
}
}
- TRIE_FOR_EACH(&trie, leaf) {
+ for_trie (leaf, &trie) {
bfs_verify(false);
}