From d34d25c9546ce406afef2c561663db422045f05a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 13 Feb 2025 12:57:19 -0500 Subject: trie: Make nibble indices big-endian Otherwise the order doesn't match lexicographical order on bytes. --- tests/trie.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/trie.c b/tests/trie.c index 6e6024a..59bde40 100644 --- a/tests/trie.c +++ b/tests/trie.c @@ -39,6 +39,10 @@ static const char *keys[] = { ">>>>>>", ">>><<<", ">>>", + + "AAAAAAA", + "AAAAAAAB", + "AAAAAAAa", }; static const size_t nkeys = countof(keys); -- cgit v1.2.3