diff options
Diffstat (limited to 'test/helper-test.c')
-rw-r--r-- | test/helper-test.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/helper-test.c b/test/helper-test.c index 425cef06..9d70c61a 100644 --- a/test/helper-test.c +++ b/test/helper-test.c @@ -51,20 +51,6 @@ int main ( int argc, char ** argv ) } /** - * Collating. - */ - char *res = token_collate_key ( "€ Sign", FALSE ); - TASSERT ( strcmp ( res, "€ sign" ) == 0 ); - g_free ( res ); - - res = token_collate_key ( "éÉêèë Sign", FALSE ); - TASSERT ( strcmp ( res, "ééêèë sign" ) == 0 ); - g_free ( res ); - res = token_collate_key ( "éÉêèë³ Sign", TRUE ); - TASSERT ( strcmp ( res, "éÉêèë3 Sign" ) == 0 ); - g_free ( res ); - - /** * Char function */ @@ -83,20 +69,6 @@ int main ( int argc, char ** argv ) /** * tokenize */ - config.regex = FALSE; - config.glob = FALSE; - char ** retv = tokenize ( "aAp nOoT MieS 12", FALSE ); - TASSERT ( retv[0] && strcmp ( retv[0], "aap" ) == 0 ); - TASSERT ( retv[1] && strcmp ( retv[1], "noot" ) == 0 ); - TASSERT ( retv[2] && strcmp ( retv[2], "mies" ) == 0 ); - TASSERT ( retv[3] && strcmp ( retv[3], "12" ) == 0 ); - tokenize_free ( retv ); - retv = tokenize ( "blub³ bOb bEp bEE", TRUE ); - TASSERT ( retv[0] && strcmp ( retv[0], "blub3" ) == 0 ); - TASSERT ( retv[1] && strcmp ( retv[1], "bOb" ) == 0 ); - TASSERT ( retv[2] && strcmp ( retv[2], "bEp" ) == 0 ); - TASSERT ( retv[3] && strcmp ( retv[3], "bEE" ) == 0 ); - tokenize_free ( retv ); TASSERT ( levenshtein ( "aap", "aap" ) == 0 ); TASSERT ( levenshtein ( "aap", "aap " ) == 1 ); |