1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-03-03 16:05:20 -05:00

[CodeCY] More cleanup.

This commit is contained in:
Dave Davenport 2019-02-02 12:07:36 +01:00
parent 804f130d5b
commit 2f2abffb98
2 changed files with 8 additions and 8 deletions

View file

@ -1018,7 +1018,11 @@ static int take_keyboard ( xcb_window_t w, int iters )
if ( ( ++i ) > iters ) {
break;
}
usleep ( 1000 );
struct timespec del = {
.tv_sec = 0,
.tv_nsec = 1000000
};
nanosleep ( &del, NULL );
}
return 0;
}

View file

@ -82,8 +82,7 @@ END_TEST
START_TEST ( test_tokenizer_match_normal_single_cs )
{
config.matching_method = MM_NORMAL;
rofi_int_matcher **tokens = NULL;
tokens = helper_tokenize ( "noot", TRUE );
rofi_int_matcher **tokens = helper_tokenize ( "noot", TRUE );
ck_assert_int_eq ( helper_token_match ( tokens, "aap noot mies") , TRUE );
ck_assert_int_eq ( helper_token_match ( tokens, "aap mies") , FALSE );
@ -100,9 +99,7 @@ END_TEST
START_TEST ( test_tokenizer_match_normal_multiple_ci )
{
config.matching_method = MM_NORMAL;
rofi_int_matcher **tokens = NULL;
tokens = helper_tokenize ( "no ot", FALSE );
rofi_int_matcher **tokens = helper_tokenize ( "no ot", FALSE );
ck_assert_int_eq ( helper_token_match ( tokens, "aap noot mies") , TRUE );
ck_assert_int_eq ( helper_token_match ( tokens, "aap mies") , FALSE );
ck_assert_int_eq ( helper_token_match ( tokens, "nooaap mies") , FALSE );
@ -284,8 +281,7 @@ END_TEST
START_TEST ( test_tokenizer_match_fuzzy_single_ci_split )
{
config.matching_method = MM_FUZZY;
rofi_int_matcher **tokens = NULL;
tokens = helper_tokenize ( "ont", FALSE );
rofi_int_matcher **tokens = helper_tokenize ( "ont", FALSE );
ck_assert_int_eq ( helper_token_match ( tokens, "aap noot mies") , FALSE);
ck_assert_int_eq ( helper_token_match ( tokens, "aap mies") , FALSE );
ck_assert_int_eq ( helper_token_match ( tokens, "nooaap mies") , FALSE );