mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 05:06:00 +01:00
More NULLs.
This commit is contained in:
parent
1407e46724
commit
c66b6ced5e
1 changed files with 4 additions and 4 deletions
|
@ -5,22 +5,22 @@
|
||||||
#include "../utils.h"
|
#include "../utils.h"
|
||||||
|
|
||||||
START_TEST(test_file_exists_null) {
|
START_TEST(test_file_exists_null) {
|
||||||
fail_unless(file_exists(NULL) == false);
|
fail_unless(file_exists(NULL) == false, NULL);
|
||||||
} END_TEST
|
} END_TEST
|
||||||
|
|
||||||
START_TEST(test_file_get_extension_null) {
|
START_TEST(test_file_get_extension_null) {
|
||||||
fail_unless(file_get_extension(NULL) == NULL);
|
fail_unless(file_get_extension(NULL) == NULL, NULL);
|
||||||
} END_TEST
|
} END_TEST
|
||||||
|
|
||||||
START_TEST(test_file_get_extension_none) {
|
START_TEST(test_file_get_extension_none) {
|
||||||
const char* path = "test";
|
const char* path = "test";
|
||||||
fail_unless(file_get_extension(path) == NULL);
|
fail_unless(file_get_extension(path) == NULL, NULL);
|
||||||
} END_TEST
|
} END_TEST
|
||||||
|
|
||||||
START_TEST(test_file_get_extension_single) {
|
START_TEST(test_file_get_extension_single) {
|
||||||
const char* path = "test.pdf";
|
const char* path = "test.pdf";
|
||||||
const char* extension = file_get_extension(path);
|
const char* extension = file_get_extension(path);
|
||||||
fail_unless(strcmp(extension, "pdf") == 0);
|
fail_unless(strcmp(extension, "pdf") == 0, NULL);
|
||||||
} END_TEST
|
} END_TEST
|
||||||
|
|
||||||
Suite* suite_utils()
|
Suite* suite_utils()
|
||||||
|
|
Loading…
Reference in a new issue