Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- START_TEST ( test_insert ) {
- trie_node_t *root = NULL;
- ck_assert( trie_size( root ) == 0 );
- trie_insert( &root, "a" );
- trie_insert( &root, "any" );
- trie_insert( &root, "answer" );
- ck_assert( trie_size( root ) == 3 );
- }
- END_TEST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement