From: Sebastian B. <sb...@us...> - 2014-01-19 18:47:36
|
Update of /cvsroot/simplemail/simplemail/tests In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24444/tests Modified Files: index_unittest.c Log Message: Test if suffixes some more strings are contained. Index: index_unittest.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/tests/index_unittest.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- index_unittest.c 19 Jan 2014 18:47:03 -0000 1.13 +++ index_unittest.c 19 Jan 2014 18:47:34 -0000 1.14 @@ -237,6 +237,7 @@ ok = index_put_document(index,20,zauberlehrling); CU_ASSERT(ok != 0); + test_index_contains_all_suffixes(index, "This is a very long text.", 4); test_index_contains_all_suffixes(index, zauberlehrling, 20); ok = index_remove_document(index,4); @@ -251,6 +252,9 @@ ok = index_put_document(index,32,text); CU_ASSERT(ok != 0); + test_index_contains_all_suffixes(index, zauberlehrling, 20); + test_index_contains_all_suffixes(index, text, 32); + index_dispose(index); free(text); } |