mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 11:46:01 +01:00
Remove obsolete tests
This commit is contained in:
parent
6599b921a3
commit
dcc2e9f736
1 changed files with 0 additions and 22 deletions
|
@ -4,21 +4,6 @@
|
||||||
|
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
START_TEST(test_file_get_extension_null) {
|
|
||||||
fail_unless(file_get_extension(NULL) == NULL, NULL);
|
|
||||||
} END_TEST
|
|
||||||
|
|
||||||
START_TEST(test_file_get_extension_none) {
|
|
||||||
const char* path = "test";
|
|
||||||
fail_unless(file_get_extension(path) == NULL, NULL);
|
|
||||||
} END_TEST
|
|
||||||
|
|
||||||
START_TEST(test_file_get_extension_single) {
|
|
||||||
const char* path = "test.pdf";
|
|
||||||
const char* extension = file_get_extension(path);
|
|
||||||
fail_unless(strcmp(extension, "pdf") == 0, NULL);
|
|
||||||
} END_TEST
|
|
||||||
|
|
||||||
START_TEST(test_file_valid_extension_null) {
|
START_TEST(test_file_valid_extension_null) {
|
||||||
fail_unless(file_valid_extension(NULL, NULL) == false, NULL);
|
fail_unless(file_valid_extension(NULL, NULL) == false, NULL);
|
||||||
fail_unless(file_valid_extension((void*) 0xDEAD, NULL) == false, NULL);
|
fail_unless(file_valid_extension((void*) 0xDEAD, NULL) == false, NULL);
|
||||||
|
@ -62,13 +47,6 @@ Suite* suite_utils()
|
||||||
TCase* tcase = NULL;
|
TCase* tcase = NULL;
|
||||||
Suite* suite = suite_create("Utils");
|
Suite* suite = suite_create("Utils");
|
||||||
|
|
||||||
/* file exists */
|
|
||||||
tcase = tcase_create("file_get_extension");
|
|
||||||
tcase_add_test(tcase, test_file_get_extension_null);
|
|
||||||
tcase_add_test(tcase, test_file_get_extension_none);
|
|
||||||
tcase_add_test(tcase, test_file_get_extension_single);
|
|
||||||
suite_add_tcase(suite, tcase);
|
|
||||||
|
|
||||||
/* file valid extension */
|
/* file valid extension */
|
||||||
tcase = tcase_create("file_valid_extension");
|
tcase = tcase_create("file_valid_extension");
|
||||||
tcase_add_test(tcase, test_file_valid_extension_null);
|
tcase_add_test(tcase, test_file_valid_extension_null);
|
||||||
|
|
Loading…
Reference in a new issue