assertEquals( "Size of union of g0 not correct", s0, m0.size() ); m0.addGraph( g1 ); assertEquals( "Size of union of g1 and g0 not correct", s0+s1, m0.size() ); assertEquals( "Size of union of g0, g1 and g2 not correct", s0+s1+s2 -1, m0.size() ); assertEquals( "Size of union of g0 and g2 not correct", s0+s2 -1, m0.size() ); assertEquals( "Size of union of g2 not correct", s2, m0.size() ); assertEquals( "Size of union of g2 not correct", s2, m0.size() ); assertEquals( "Size of empty union not correct", 0, m0.size() );
assertEquals( "Size of union of g0 not correct", s0, m0.size() ); m0.addGraph( g1 ); assertEquals( "Size of union of g1 and g0 not correct", s0+s1, m0.size() ); assertEquals( "Size of union of g0, g1 and g2 not correct", s0+s1+s2 -1, m0.size() ); assertEquals( "Size of union of g0 and g2 not correct", s0+s2 -1, m0.size() ); assertEquals( "Size of union of g2 not correct", s2, m0.size() ); assertEquals( "Size of union of g2 not correct", s2, m0.size() ); assertEquals( "Size of empty union not correct", 0, m0.size() );
int s1 = g1.size(); int s2 = g2.size(); int m0 = m.size(); assertEquals( "m.size should have increased by one", m0 + 1, m.size() ); assertEquals( "g0.size should have increased by one", s0 + 1, g0.size() ); assertEquals( "g1 size should be constant", s1, g1.size() ); s1 = g1.size(); s2 = g2.size(); m0 = m.size(); assertEquals( "m.size should have increased by one", m0 + 1, m.size() ); assertEquals( "g0 size should be constant", s0, g0.size() ); assertEquals( "g1.size should have increased by one", s1 + 1, g1.size() );
int s1 = g1.size(); int s2 = g2.size(); int m0 = m.size(); assertEquals( "m.size should have increased by one", m0 + 1, m.size() ); assertEquals( "g0.size should have increased by one", s0 + 1, g0.size() ); assertEquals( "g1 size should be constant", s1, g1.size() ); s1 = g1.size(); s2 = g2.size(); m0 = m.size(); assertEquals( "m.size should have increased by one", m0 + 1, m.size() ); assertEquals( "g0 size should be constant", s0, g0.size() ); assertEquals( "g1.size should have increased by one", s1 + 1, g1.size() );