Skip to content

Commit 796e656

Browse files
committed
Update testing skeleton
1 parent 59cdf17 commit 796e656

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

tests/test.skel

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
#include <string.h>
22
#include "html_parser_assert.h"
3+
#include "html_parser_mem.h"
34
#include "html_parser_fmt.h"
4-
#include "html_parser_tag_lookup.h"
5+
#include "html_parser_file_reader.h"
6+
#include "html_parser_document_tree.h"
57
#include "html_parser_tester.h"
68

79
#define T Test_T
810

911
/* test data */
1012

1113
/* test functions */
14+
static int Test_func(T t, void *, const void *);
1215

1316
int main(int argc, const char *argv[])
1417
{
1518
T suite;
16-
19+
1720
Fmt_fprint(stderr, "==> Starting %s <==\n", __FILE__);
1821

1922
suite = Test_init();
2023

21-
Test_add(suite, <func_name>, (void *) doc,
22-
(const void *) pathname);
24+
/*Test_add(suite, Test_func, (void *) dt, (const void *) results);*/
2325

2426
Test_all_run(suite);
2527
Test_print_results(suite);
@@ -28,3 +30,12 @@ int main(int argc, const char *argv[])
2830

2931
return 0;
3032
}
33+
34+
static int Test_func(T t, void *s, const void *chk)
35+
{
36+
37+
TEST_FUNC_NAME(t);
38+
39+
return TEST_FAIL;
40+
}
41+

0 commit comments

Comments
 (0)