+ trie_insert(trie, "debout !");
+ trie_compile(trie, false);
+ trie_inspect(trie, true);
+
+#define ASSERT_TRUE(str) \
+ if (!trie_lookup(trie, str)) { \
+ printf("\"%s\" not found in trie\n", str); \
+ return 1; \
+ }
+#define ASSERT_FALSE(str) \
+ if (trie_lookup(trie, str)) { \
+ printf("\"%s\" found in trie\n", str); \
+ return 1; \
+ }
+ ASSERT_FALSE("");
+ ASSERT_FALSE("coucou ");
+ ASSERT_FALSE("abcde123");
+ ASSERT_FALSE("abcde");
+ ASSERT_FALSE("coucou chez vous tous");
+ ASSERT_TRUE("abcde123456789");
+ ASSERT_TRUE("abcde123456789");
+ ASSERT_TRUE("abcde123654789");
+ ASSERT_TRUE("abcdefghi");
+ ASSERT_TRUE("coucou");
+ ASSERT_TRUE("coucou chez vous");
+ ASSERT_TRUE("debout !");
+