mirror of
https://github.com/davatorium/rofi.git
synced 2024-10-27 05:23:18 -04:00
Add some helper tests.
This commit is contained in:
parent
f6c8ba9755
commit
a21f8dd179
1 changed files with 17 additions and 0 deletions
|
@ -49,5 +49,22 @@ int main ( int argc, char ** argv )
|
|||
TASSERT ( strcmp ( list[4], "-c" ) == 0 );
|
||||
TASSERT ( strcmp ( list[5], "ssh chuck; echo 'x-terminal-emulator chuck'" ) == 0 );
|
||||
|
||||
char *str = rofi_expand_path("/");
|
||||
TASSERT ( strcmp(str, "/") == 0 );
|
||||
g_free(str);
|
||||
str = rofi_expand_path("../AUTHORS");
|
||||
TASSERT ( strcmp(str, "../AUTHORS") == 0 );
|
||||
g_free(str);
|
||||
str = rofi_expand_path("/bin/false");
|
||||
TASSERT ( strcmp(str, "/bin/false") == 0 );
|
||||
g_free(str);
|
||||
str = rofi_expand_path("~/");
|
||||
TASSERT ( str[0] == '/' );
|
||||
g_free(str);
|
||||
str = rofi_expand_path("~root/");
|
||||
TASSERT ( str[0] == '/' );
|
||||
g_free(str);
|
||||
|
||||
|
||||
g_strfreev ( list );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue