zathura/tests/test_document.c

32 lines
728 B
C
Raw Normal View History

2018-11-27 23:10:18 +01:00
/* SPDX-License-Identifier: Zlib */
2012-03-30 16:43:00 +02:00
#include <check.h>
2014-11-07 15:57:46 +01:00
#include "document.h"
#include "tests.h"
2012-03-30 16:43:00 +02:00
START_TEST(test_open) {
2021-09-20 00:04:58 +02:00
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));
2012-03-30 16:43:00 +02:00
} END_TEST
static Suite* suite_document(void)
2012-03-30 16:43:00 +02:00
{
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());
}