85 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
91 std::map<wxString, int> tpNetCodes;
93 for(
const auto& [key, subgraphs] : graph->
GetNetMap() )
97 for(
SCH_ITEM* item : subgraph->GetItems() )
106 wxString ref = symbol->
GetRef( &subgraph->GetSheet() );
108 if( ref ==
"TP101" || ref ==
"TP102" ||
109 ref ==
"TP401" || ref ==
"TP402" )
111 tpNetCodes[ref] = key.Netcode;
120 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP101" ),
121 "TP101 should be found in netlist" );
122 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP102" ),
123 "TP102 should be found in netlist" );
124 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP401" ),
125 "TP401 should be found in netlist" );
126 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP402" ),
127 "TP402 should be found in netlist" );
130 BOOST_CHECK_MESSAGE( tpNetCodes[
"TP101"] == tpNetCodes[
"TP401"],
131 "TP101 and TP401 should be on the same net (m.X.Y.Z1)" );
135 BOOST_CHECK_MESSAGE( tpNetCodes[
"TP102"] == tpNetCodes[
"TP402"],
136 "TP102 and TP402 should be on the same net (m.X.Y.Z2)" );