59 bool loaded =
image.LoadGerberFile( wxString::FromUTF8( fn ) );
60 BOOST_REQUIRE_MESSAGE( loaded,
"Failed to load test gerber file" );
68 if( items.size() != 6 )
83 int posIdx =
copy * 2;
84 int negIdx =
copy * 2 + 1;
86 BOOST_CHECK_MESSAGE( !items[posIdx]->GetLayerPolarity(),
87 "Item " << posIdx <<
" (copy " <<
copy <<
" positive) "
88 <<
"should have positive polarity" );
90 BOOST_CHECK_MESSAGE( items[negIdx]->GetLayerPolarity(),
91 "Item " << negIdx <<
" (copy " <<
copy <<
" negative) "
92 <<
"should have negative polarity" );
101 VECTOR2I origPos = items[0]->GetPosition();
103 int expectedDx =
copy * stepX;
BOOST_CHECK_EQUAL(result, "25.4")