69 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
73 std::map<wxString, wxString> pinNetNames;
88 wxString pinKey = ref +
"." +
pin->GetNumber();
89 pinNetNames[pinKey] = conn->
Name();
98 const std::vector<wxString> expectedNets = {
"CON_B_7",
"CON_B_8",
"CON_B_1",
"CON_B_2",
99 "CON_B_3",
"CON_B_4",
"CON_B_5",
"CON_B_6" };
101 for(
int i = 0; i < 8; i++ )
103 wxString ref = wxString::Format(
"R%d.1", i + 9 );
104 BOOST_REQUIRE_MESSAGE( pinNetNames.count( ref ), wxString::Format(
"%s should have a net assigned", ref ) );
106 wxString netName = pinNetNames[ref];
107 BOOST_CHECK_MESSAGE( netName == expectedNets[i],
108 wxString::Format(
"%s expected %s, got %s", ref, expectedNets[i], netName ) );