-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.c
More file actions
36 lines (27 loc) · 684 Bytes
/
test.c
File metadata and controls
36 lines (27 loc) · 684 Bytes
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
#if !defined(_WIN32) && !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
#define AVEN_IMPLEMENTATION
#include <aven.h>
#include <aven/arena.h>
#include <aven/fs.h>
#include <aven/path.h>
#include <aven/str.h>
#include <aven/test.h>
#include <stdlib.h>
#include "test/str.h"
#include "test/path.h"
#include "test/io.h"
#include "test/hash_map.h"
#define ARENA_SIZE (4096 * 32)
int main(void) {
aven_fs_utf8_mode();
void *mem = malloc(ARENA_SIZE);
AvenArena test_arena = aven_arena_init(mem, ARENA_SIZE);
test_str(test_arena);
test_path(test_arena);
test_io(test_arena);
test_hash_map(test_arena);
free(mem);
return 0;
}