56 std::unique_ptr<XNODE> root( PARSER::LoadArchiveFile( GetTestFile(), wxT(
"CADSTARSCM" ) ) );
60 XNODE* connNode =
nullptr;
62 for(
XNODE* schematic = root->GetChildren(); schematic && !connNode;
63 schematic = schematic->
GetNext() )
65 if( schematic->GetName() != wxT(
"SCHEMATIC" ) )
70 if( net->GetName() != wxT(
"NET" ) )
75 if( child->GetName() == wxT(
"CONN" ) )
86 PARSER::PARSER_CONTEXT context;
87 PARSER::NET_SCH::CONNECTION_SCH conn;
91 BOOST_REQUIRE_NO_THROW( conn.Parse( connNode, &context ) );
94 BOOST_REQUIRE_EQUAL( conn.Path.size(), 4 );
BOOST_CHECK_EQUAL(result, "25.4")