diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-09-25 13:58:19 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-09-25 14:15:01 -0400 |
commit | 76253d272c50ba08002a47395e47a4f9ce4fb53e (patch) | |
tree | 7878515f6478af2dd98ac2780c6ec9ad11c19c9c /tests | |
parent | e4304e8b9e74577947647743fd51937ac51956c9 (diff) | |
download | bfs-76253d272c50ba08002a47395e47a4f9ce4fb53e.tar.xz |
Use the new list macros
Diffstat (limited to 'tests')
-rw-r--r-- | tests/trie.c | 4 |
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); } |