78 std::vector<SCH_SHEET_PATH> childPaths;
82 if(
path.size() == 2 )
83 childPaths.push_back(
path );
86 BOOST_REQUIRE_EQUAL( childPaths.size(), 2U );
94 std::set<wxString> labelTexts;
101 labelTexts.insert( label->
GetShownText( &childPath,
false ) );
107 for(
const wxString& t : labelTexts )
109 if( !labelList.IsEmpty() )
110 labelList += wxT(
"," );
118 wxString pinText =
pin->GetShownText( &childPath,
false );
121 && !pinText.Contains( wxT(
"${" ) ),
122 wxString::Format(
"Sheet pin '%s' on path '%s' did not fully "
123 "resolve expression variables",
125 childPath.PathHumanReadable() ) );
128 wxString::Format(
"Sheet pin '%s' on path '%s' has no matching "
129 "hierarchical label inside the child sheet. "
132 childPath.PathHumanReadable(),
139 std::set<wxString> allPinTexts;
144 allPinTexts.insert(
pin->GetShownText( &childPath,
false ) );
156 wxString::Format(
"Ch%ld", ( page - 2 ) * 2 + 0 ),
157 wxString::Format(
"Ch%ld", ( page - 2 ) * 2 + 1 )
160 std::set<wxString>
actual;
163 actual.insert(
pin->GetShownText( &childPath,
false ) );
167 for(
const wxString& t :
actual )
169 if( !actualList.IsEmpty() )
170 actualList += wxT(
"," );
176 wxString::Format(
"Page %ld expected {Ch%ld, Ch%ld} but got {%s}",
178 ( page - 2 ) * 2 + 0,
179 ( page - 2 ) * 2 + 1,
204 std::vector<SCH_SHEET_PATH> childPaths;
208 if(
path.size() == 2 )
209 childPaths.push_back(
path );
212 BOOST_REQUIRE_EQUAL( childPaths.size(), 2U );
216 SCH_SHEET* childSheet = childPath.Last();
224 BOOST_REQUIRE_EQUAL( parentPath.
size() + 1U, childPath.size() );
228 wxString fromChildPath =
pin->GetShownText( &childPath,
false );
229 wxString fromParentPath =
pin->GetShownText( &parentPath,
false );
232 wxString::Format(
"Sheet pin resolution diverged between "
233 "path forms: child='%s' parent='%s'",
BOOST_CHECK_EQUAL(result, "25.4")