20#include <boost/test/unit_test.hpp>
27#include <wx/filename.h>
38 + wxS(
"../pcbnew/plugins/easyeda/SCH_ESP32-PICO-D4 smart watch_2023-09-02.json" );
40 std::ifstream in(
source.ToStdString() );
41 nlohmann::json doc = nlohmann::json::parse( in,
nullptr,
false );
46 nlohmann::json wrapped = { {
"docType",
"1" },
48 {
"dataStr", doc[
"schematics"][0][
"dataStr"] } };
50 wxFileName
path( wxFileName::CreateTempFileName( wxS(
"kicad_easyeda_wrapped_" ) ) );
55 std::ofstream out(
jsonPath.GetFullPath().ToStdString() );
56 out << wrapped.dump();
64 wxRemoveFile(
jsonPath.GetFullPath() );
65 wxRemoveFile(
path.GetFullPath() );
void EnumerateSymbolLib(wxArrayString &aSymbolNameList, const wxString &aLibraryPath, const std::map< std::string, UTF8 > *aProperties=nullptr) override
Populate a list of LIB_SYMBOL alias names contained within the library aLibraryPath.
std::string GetEeschemaTestDataDir()
Get the configured location of Eeschema test data.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_SUITE_END()