Advertisement
Broatlas

test_insert

Apr 23rd, 2016
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. START_TEST ( test_insert ) {
  2.  
  3.     trie_node_t *root = NULL;
  4.    
  5.     ck_assert( trie_size( root ) == 0 );
  6.     trie_insert( &root, "a" );
  7.     trie_insert( &root, "any" );
  8.     trie_insert( &root, "answer" );
  9.     ck_assert( trie_size( root ) == 3 );
  10.    
  11. }
  12. END_TEST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement