1
#include "SimpleTypeSystem.h"
2
#include "test_macros.h"
8
for_each_print_map (SLinkedList * self, SMapItem * item, sint * itt) {
9
s_print ("Key: \"%s\" Value: %d on iteration: %d\n", (schar *)item->key,
19
map = s_map_new (COMPFUNC (s_string_is_equal),
24
test_case (map != NULL, "Map is not null.");
26
s_map_add (map, "Hello", (spointer)(sint) 1337);
28
test_case ((s_map_get (map, "Hello") == (sint) 1337), "The got value is the"
29
" same as the one added to"
31
SMapItem * item = s_map_get_item (map, "Hello");
32
s_print ("The key was: %s, the Value was: %d\n", (schar *) item->key,
35
s_map_free (map, TRUE);