74 std::vector<SCH_SHEET_PATH> childPaths;
78 if(
path.size() == 2 )
79 childPaths.push_back(
path );
82 BOOST_REQUIRE_EQUAL( childPaths.size(), 2U );
90 std::set<wxString> labelTexts;
97 labelTexts.insert( label->
GetShownText( &childPath,
false ) );
103 for(
const wxString& t : labelTexts )
105 if( !labelList.IsEmpty() )
106 labelList += wxT(
"," );
114 wxString pinText =
pin->GetShownText( &childPath,
false );
117 && !pinText.Contains( wxT(
"${" ) ),
118 wxString::Format(
"Sheet pin '%s' on path '%s' did not fully "
119 "resolve expression variables",
121 childPath.PathHumanReadable() ) );
124 wxString::Format(
"Sheet pin '%s' on path '%s' has no matching "
125 "hierarchical label inside the child sheet. "
128 childPath.PathHumanReadable(),
135 std::set<wxString> allPinTexts;
140 allPinTexts.insert(
pin->GetShownText( &childPath,
false ) );
152 wxString::Format(
"Ch%ld", ( page - 2 ) * 2 + 0 ),
153 wxString::Format(
"Ch%ld", ( page - 2 ) * 2 + 1 )
156 std::set<wxString>
actual;
159 actual.insert(
pin->GetShownText( &childPath,
false ) );
163 for(
const wxString& t :
actual )
165 if( !actualList.IsEmpty() )
166 actualList += wxT(
"," );
172 wxString::Format(
"Page %ld expected {Ch%ld, Ch%ld} but got {%s}",
174 ( page - 2 ) * 2 + 0,
175 ( page - 2 ) * 2 + 1,
200 std::vector<SCH_SHEET_PATH> childPaths;
204 if(
path.size() == 2 )
205 childPaths.push_back(
path );
208 BOOST_REQUIRE_EQUAL( childPaths.size(), 2U );
212 SCH_SHEET* childSheet = childPath.Last();
220 BOOST_REQUIRE_EQUAL( parentPath.
size() + 1U, childPath.size() );
224 wxString fromChildPath =
pin->GetShownText( &childPath,
false );
225 wxString fromParentPath =
pin->GetShownText( &parentPath,
false );
228 wxString::Format(
"Sheet pin resolution diverged between "
229 "path forms: child='%s' parent='%s'",
BOOST_CHECK_EQUAL(result, "25.4")