aboutsummaryrefslogtreecommitdiff
path: root/test/main.c
blob: 06d31a17db190502ad5327a4329c8d253d4a3bb0 (plain)
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
/* See LICENSE file for copyright and license details. */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <list.h>
#include <map.h>

void test_list1();
void test_list2();
void test_list3();
void test_list4();
void test_list5();
void test_list6();

void
test_map()
{
	map_t map = cmap_create();
	cmap_put(&map, "hi",    "test");
	cmap_put(&map, "hello", "test");
	cmap_put(&map, "good",  "test");
	cmap_put(&map, "best",  "test");
}

int main(int argc, char** argv)
{
	test_list1();
	test_list2();
	test_list3();
	test_list4();
	test_list5();
	test_list6();

  test_map();

	return 0;
}