Add fix in QA, missing in commit a16ab0aa
This commit is contained in:
parent
a16ab0aae1
commit
bd503647c6
|
@ -414,18 +414,18 @@ BOOST_AUTO_TEST_CASE( Compare )
|
|||
m_part_no_data.SetNormal();
|
||||
|
||||
// Draw item list size comparison tests.
|
||||
testPart.AddDrawItem( new LIB_SHAPE( &testPart, SHAPE_T::RECT ) );
|
||||
m_part_no_data.AddDrawItem( new LIB_SHAPE( &m_part_no_data, SHAPE_T::RECT ) );
|
||||
testPart.AddDrawItem( new LIB_SHAPE( &testPart, SHAPE_T::RECTANGLE ) );
|
||||
m_part_no_data.AddDrawItem( new LIB_SHAPE( &m_part_no_data, SHAPE_T::RECTANGLE ) );
|
||||
BOOST_CHECK_EQUAL( m_part_no_data.Compare( testPart ), 0 );
|
||||
m_part_no_data.RemoveDrawItem( &m_part_no_data.GetDrawItems()[LIB_SHAPE_T].front() );
|
||||
BOOST_CHECK( m_part_no_data.Compare( testPart ) < 0 );
|
||||
testPart.RemoveDrawItem( &testPart.GetDrawItems()[LIB_SHAPE_T].front() );
|
||||
m_part_no_data.AddDrawItem( new LIB_SHAPE( &m_part_no_data, SHAPE_T::RECT ) );
|
||||
m_part_no_data.AddDrawItem( new LIB_SHAPE( &m_part_no_data, SHAPE_T::RECTANGLE ) );
|
||||
BOOST_CHECK( m_part_no_data.Compare( testPart ) > 0 );
|
||||
m_part_no_data.RemoveDrawItem( &m_part_no_data.GetDrawItems()[LIB_SHAPE_T].front() );
|
||||
|
||||
// Draw item list contents comparison tests.
|
||||
testPart.AddDrawItem( new LIB_SHAPE( &testPart, SHAPE_T::RECT ) );
|
||||
testPart.AddDrawItem( new LIB_SHAPE( &testPart, SHAPE_T::RECTANGLE ) );
|
||||
m_part_no_data.AddDrawItem( new LIB_SHAPE( &m_part_no_data, SHAPE_T::ARC ) );
|
||||
BOOST_CHECK( m_part_no_data.Compare( testPart ) > 0 );
|
||||
m_part_no_data.RemoveDrawItem( &m_part_no_data.GetDrawItems()[LIB_SHAPE_T].front() );
|
||||
|
|
Loading…
Reference in New Issue