mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 14:06:00 +01:00
31 lines
728 B
C
31 lines
728 B
C
/* SPDX-License-Identifier: Zlib */
|
|
|
|
#include <check.h>
|
|
|
|
#include "document.h"
|
|
#include "tests.h"
|
|
|
|
START_TEST(test_open) {
|
|
ck_assert_ptr_null(zathura_document_open(NULL, NULL, NULL, NULL, NULL));
|
|
ck_assert_ptr_null(zathura_document_open(NULL, "fl", NULL, NULL, NULL));
|
|
ck_assert_ptr_null(zathura_document_open(NULL, "fl", "ur", NULL, NULL));
|
|
ck_assert_ptr_null(zathura_document_open(NULL, "fl", NULL, "pw", NULL));
|
|
} END_TEST
|
|
|
|
static Suite* suite_document(void)
|
|
{
|
|
TCase* tcase = NULL;
|
|
Suite* suite = suite_create("Document");
|
|
|
|
/* basic */
|
|
tcase = tcase_create("basic");
|
|
tcase_add_test(tcase, test_open);
|
|
suite_add_tcase(suite, tcase);
|
|
|
|
return suite;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
return run_suite(suite_document());
|
|
}
|