Changes in test/maps_test.cc [123:8899d1891a3c:94:a4688e4138ec] in lemon
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

test/maps_test.cc
r123 r94 84 84 { 85 85 checkConcept<ReadWriteMap<A,B>, ConstMap<A,B> >(); 86 checkConcept<ReadWriteMap<A,C>, ConstMap<A,C> >();87 86 ConstMap<A,B> map1; 88 87 ConstMap<A,B> map2(B()); 89 88 ConstMap<A,B> map3 = map1; 90 89 map1 = constMap<A>(B()); 91 map1 = constMap<A,B>();92 90 map1.setAll(B()); 93 ConstMap<A,C> map4(C(1));94 ConstMap<A,C> map5 = map4;95 map4 = constMap<A>(C(2));96 map4.setAll(C(3));97 91 98 92 checkConcept<ReadWriteMap<A,int>, ConstMap<A,int> >(); … … 100 94 101 95 checkConcept<ReadWriteMap<A,int>, ConstMap<A,Const<int,10> > >(); 102 ConstMap<A,Const<int,10> > map6; 103 ConstMap<A,Const<int,10> > map7 = map6; 104 map6 = constMap<A,int,10>(); 105 map7 = constMap<A,Const<int,10> >(); 106 check(map6[A()] == 10 && map7[A()] == 10, "Something is wrong with ConstMap"); 96 ConstMap<A,Const<int,10> > map4; 97 ConstMap<A,Const<int,10> > map5 = map4; 98 map4 = map5; 99 check(map4[A()] == 10 && map5[A()] == 10, "Something is wrong with ConstMap"); 107 100 } 108 101
Note: See TracChangeset
for help on using the changeset viewer.