Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
current = trie->keys[i][offset];
}
}
+ if (fork_pos == 0 && current == '\0') {
+ return;
+ }
}
forks[fork_pos] = last_key;
}
munmap((void*)map, st.st_size);
trie_compile(db, false);
- printf("OK\n");
- sleep(10);
return db;
}
ASSERT_FALSE("abcde");
ASSERT_FALSE("coucou chez vous tous");
ASSERT_TRUE("abcde123456789");
+ ASSERT_TRUE("abcde123456789");
ASSERT_TRUE("abcde123654789");
ASSERT_TRUE("abcdefghi");
ASSERT_TRUE("coucou");
*/
if (argc > 1) {
trie = create_trie_from_file(argv[1]);
- trie_inspect(trie);
+// trie_inspect(trie);
trie_delete(&trie);
}
return 0;