37 const std::filesystem::path boardPath =
42 const std::filesystem::path outputRoot =
43 std::filesystem::temp_directory_path() /
"kicad_gencad_export_test";
44 const std::filesystem::path outputPath = outputRoot /
"test_output.cad";
46 if( std::filesystem::exists( outputRoot ) )
47 std::filesystem::remove_all( outputRoot );
49 auto gencadJob = std::make_unique<JOB_EXPORT_PCB_GENCAD>();
50 gencadJob->m_filename = wxString::FromUTF8( boardPath.string().c_str() );
51 gencadJob->SetConfiguredOutputPath( wxString::FromUTF8( outputPath.string().c_str() ) );
56 BOOST_CHECK( std::filesystem::exists( outputPath ) );
57 BOOST_CHECK( std::filesystem::is_regular_file( outputPath ) );
59 std::filesystem::remove_all( outputRoot );
wxString result
Test unit parsing edge cases and error handling.
BOOST_CHECK_EQUAL(result, "25.4")