diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_phrase_table.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/storage/test_phrase_table.cpp b/tests/storage/test_phrase_table.cpp index e5fb24d..66ed060 100644 --- a/tests/storage/test_phrase_table.cpp +++ b/tests/storage/test_phrase_table.cpp @@ -65,8 +65,11 @@ int main(int argc, char * argv[]){ } print_time(start, bench_times); - largetable.search(phrase_len, new_phrase, token); - printf("%s:\t%d\n", linebuf, token); + int retval = largetable.search(phrase_len, new_phrase, token); + if ( retval & SEARCH_OK ) + printf("%s:\t%d\n", linebuf, token); + else + printf("phrase %s not found.\n", linebuf); g_free(new_phrase); } |