tests/test_map_generics.c

changeset 692
6ac92936cd44
parent 691
65baf7f45ac8
child 694
ac827d873c17
equal deleted inserted replaced
691:65baf7f45ac8 692:6ac92936cd44
31 31
32 CxMap *test_map_generics_step_1(CxAllocator const * allocator) { 32 CxMap *test_map_generics_step_1(CxAllocator const * allocator) {
33 CxMap *map = cxHashMapCreate(allocator, sizeof(cxstring), 0); 33 CxMap *map = cxHashMapCreate(allocator, sizeof(cxstring), 0);
34 34
35 cxMapPut(map, "test", "test"); 35 cxMapPut(map, "test", "test");
36 cxMapPut(map, CX_STR("foo"), "bar"); 36 cxMapPut(map, cx_mutstr("foo"), "bar");
37 cxMapPut(map, cx_str("hallo"), "welt"); 37 cxMapPut(map, cx_str("hallo"), "welt");
38 38
39 return map; 39 return map;
40 } 40 }
41 41

mercurial