diff --git a/test/maps_test.cc b/test/maps_test.cc --- a/test/maps_test.cc +++ b/test/maps_test.cc @@ -83,20 +83,27 @@ // ConstMap { checkConcept, ConstMap >(); + checkConcept, ConstMap >(); ConstMap map1; ConstMap map2(B()); ConstMap map3 = map1; map1 = constMap(B()); + map1 = constMap(); map1.setAll(B()); + ConstMap map4(C(1)); + ConstMap map5 = map4; + map4 = constMap(C(2)); + map4.setAll(C(3)); checkConcept, ConstMap >(); check(constMap(10)[A()] == 10, "Something is wrong with ConstMap"); checkConcept, ConstMap > >(); - ConstMap > map4; - ConstMap > map5 = map4; - map4 = map5; - check(map4[A()] == 10 && map5[A()] == 10, "Something is wrong with ConstMap"); + ConstMap > map6; + ConstMap > map7 = map6; + map6 = constMap(); + map7 = constMap >(); + check(map6[A()] == 10 && map7[A()] == 10, "Something is wrong with ConstMap"); } // IdentityMap