Hash :
50005e4c
Author :
Thomas de Grivel
Date :
2024-07-22T13:21:56
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
/* kc3
* Copyright 2022,2023,2024 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
#include "../libkc3/kc3.h"
#include "test.h"
void array_test (void);
void bool_test (void);
void buf_file_test (void);
void buf_inspect_test (void);
void buf_parse_test (void);
void buf_test (void);
void call_test (void);
void character_test (void);
void compare_test (void);
void env_test (void);
void fact_test (void);
void facts_test (void);
void facts_cursor_test (void);
void facts_with_test (void);
void fn_test (void);
void ident_test (void);
void inspect_test (void);
void list_test (void);
void set__fact_test (void);
void set__tag_test (void);
void skiplist__fact_test (void);
void str_test (void);
void sym_test (void);
void tag_test (void);
void tuple_test (void);
void types_test (void);
int main (int argc, char **argv)
{
if (! kc3_init(NULL, &argc, &argv))
return 1;
test_init(&argc, &argv);
if (test_target("types")) {
fprintf(stderr, "\ntypes\n");
types_test();
}
if (test_target("array")) {
fprintf(stderr, "\narray\n");
array_test();
}
if (test_target("bool")) {
fprintf(stderr, "\nbool\n");
bool_test();
}
if (test_target("character")) {
fprintf(stderr, "\ncharacter\n");
character_test();
}
if (test_target("buf")) {
fprintf(stderr, "\nbuf\n");
buf_test();
}
if (test_target("buf_parse")) {
fprintf(stderr, "\nbuf_parse\n");
buf_parse_test();
}
if (test_target("buf_inspect")) {
fprintf(stderr, "\nbuf_inspect\n");
buf_inspect_test();
}
if (test_target("buf_file")) {
fprintf(stderr, "\nbuf_file\n");
buf_file_test();
}
if (test_target("str")) {
fprintf(stderr, "\nstr\n");
str_test();
}
if (test_target("sym")) {
fprintf(stderr, "\nsym\n");
sym_test();
}
if (test_target("ident")) {
fprintf(stderr, "\nident\n");
ident_test();
}
if (test_target("list")) {
fprintf(stderr, "\nlist\n");
list_test();
}
if (test_target("tuple")) {
fprintf(stderr, "\ntuple\n");
tuple_test();
}
if (test_target("fn")) {
fprintf(stderr, "\nfn\n");
fn_test();
}
if (test_target("call")) {
fprintf(stderr, "\ncall\n");
call_test();
}
if (test_target("tag")) {
fprintf(stderr, "\ntag\n");
tag_test();
}
if (test_target("inspect")) {
fprintf(stderr, "\ninspect\n");
inspect_test();
}
if (test_target("fact")) {
fprintf(stderr, "\nfact\n");
fact_test();
}
if (test_target("compare")) {
fprintf(stderr, "\ncompare\n");
compare_test();
}
if (test_target("set__tag")) {
fprintf(stderr, "\nset__tag\n");
set__tag_test();
}
if (test_target("set__fact")) {
fprintf(stderr, "\nset__fact\n");
set__fact_test();
}
if (test_target("skiplist__fact")) {
fprintf(stderr, "\nskiplist__fact\n");
skiplist__fact_test();
}
if (test_target("facts")) {
fprintf(stderr, "\nfacts\n");
facts_test();
}
if (test_target("facts_cursor")) {
fprintf(stderr, "\nfacts_cursor\n");
facts_cursor_test();
}
if (test_target("facts_with")) {
fprintf(stderr, "\nfacts_with\n");
facts_with_test();
}
if (test_target("env")) {
fprintf(stderr, "\nenv\n");
env_test();
}
test_summary();
test_clean();
kc3_clean(NULL);
return 0;
}