1
0
Fork 0
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:
Dave Davenport 2015-12-02 09:53:39 +01:00
parent f6c8ba9755
commit a21f8dd179

View file

@ -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 );
}