-
Notifications
You must be signed in to change notification settings - Fork 0
/
unittest.h
77 lines (42 loc) · 1.37 KB
/
unittest.h
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
/* kmdata Data Structures Library
* Unit test program. */
#include<assert.h>
#include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include "dict.h"
#include "oat.h"
#include "rbtree.h"
#include "vector.h"
int32_t assert_intptr_lstcontents(list_t *lst, intptr_t *expect, int32_t len);
void generic_intptr_disp(FILE *output, const void *value);
int32_t test_list_addfirst();
int32_t test_list_addlast();
int32_t test_list_insertbefore();
int32_t test_list_insertafter();
int32_t test_list_remove();
int32_t generic_intptr_eq(const void *foo, const void *bar);
int32_t test_list_match();
void *generic_intptr_negate(const void *ptr);
int32_t test_list_map();
int32_t generic_intptr_even(const void *ptr);
int32_t test_list_filter();
int32_t test_list_zip();
void *generic_intptr_mul(const void *foo, const void *bar);
int32_t test_list_zipwith();
int32_t test_dict_add();
int32_t test_dict_remove();
void alpha26(char *buf, intptr_t n);
int32_t test_dict_resize();
int32_t generic_strcmp(const void *lhs, const void *rhs);
int32_t test_rbt_add();
int32_t test_rbt_remove();
int32_t test_rbt_remove_empty();
int32_t test_rbt_maxn();
int32_t test_rbt_minn();
int32_t assert_intptr_veccontents(vector_t *vec, intptr_t *expected, size_t n);
int32_t test_vec_add();
int32_t test_vec_remove();
int32_t test_vec_set();
int32_t test_vec_addi();
int32_t test_vec_resize();