Hash :
3d8d7728
Author :
Thomas de Grivel
Date :
2023-03-23T17:19:58
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
/* c3
* Copyright 2022,2023 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 "../libc3/c3.h"
#include "test.h"
void bool_test ();
void buf_file_test ();
void buf_inspect_test ();
void buf_parse_test ();
void buf_test ();
void call_test ();
void character_test ();
void compare_test ();
void env_test ();
void fact_test ();
void facts_test ();
void facts_cursor_test ();
void facts_with_test ();
void ident_test ();
void list_test ();
void set__fact_test ();
void set__tag_test ();
void skiplist__fact_test ();
void str_test ();
void sym_test ();
void tag_test ();
void tuple_test ();
void types_test ();
int main (int argc, char **argv)
{
test_init(argc, argv);
c3_init(NULL);
if (test_target("types")) {
printf("\ntypes\n");
types_test();
}
if (test_target("bool")) {
printf("\nbool\n");
bool_test();
}
if (test_target("character")) {
printf("\ncharacter\n");
character_test();
}
if (test_target("buf")) {
printf("\nbuf\n");
buf_test();
}
if (test_target("buf_parse")) {
printf("\nbuf_parse\n");
buf_parse_test();
}
if (test_target("buf_inspect")) {
printf("\nbuf_inspect\n");
buf_inspect_test();
}
if (test_target("buf_file")) {
printf("\nbuf_file\n");
buf_file_test();
}
if (test_target("str")) {
printf("\nstr\n");
str_test();
}
if (test_target("sym")) {
printf("\nsym\n");
sym_test();
}
if (test_target("ident")) {
printf("\nident\n");
ident_test();
}
if (test_target("list")) {
printf("\nlist\n");
list_test();
}
if (test_target("tuple")) {
printf("\ntuple\n");
tuple_test();
}
if (test_target("call")) {
printf("\ncall\n");
call_test();
}
if (test_target("tag")) {
printf("\ntag\n");
tag_test();
}
if (test_target("fact")) {
printf("\nfact\n");
fact_test();
}
if (test_target("compare")) {
printf("\ncompare\n");
compare_test();
}
if (test_target("set__tag")) {
printf("\nset__tag\n");
set__tag_test();
}
if (test_target("set__fact")) {
printf("\nset__fact\n");
set__fact_test();
}
if (test_target("skiplist__fact")) {
printf("\nskiplist__fact\n");
skiplist__fact_test();
}
if (test_target("facts")) {
printf("\nfacts\n");
facts_test();
}
if (test_target("facts_cursor")) {
printf("\nfacts_cursor\n");
facts_cursor_test();
}
if (test_target("facts_with")) {
printf("\nfacts_with\n");
facts_with_test();
}
if (test_target("env")) {
printf("\nenv\n");
env_test();
}
test_summary();
test_clean();
c3_clean(NULL);
return 0;
}