tests/test_map_generics.c

changeset 694
ac827d873c17
parent 692
6ac92936cd44
     1.1 --- a/tests/test_map_generics.c	Fri Apr 21 20:28:55 2023 +0200
     1.2 +++ b/tests/test_map_generics.c	Fri Apr 21 20:50:19 2023 +0200
     1.3 @@ -42,7 +42,8 @@
     1.4  void test_map_generics_step_2(CxMap *map) {
     1.5      // note: we don't have a destructor here, so remove and detach are the same
     1.6      cxMapRemove(map, cx_str("test"));
     1.7 -    cxMapDetach(map, "hallo");
     1.8 +    char const* hallo = "hallo";
     1.9 +    cxMapDetach(map, hallo);
    1.10      cxMapPut(map, cx_hash_key_str("key"), "value");
    1.11  }
    1.12  

mercurial