Closed agarny closed 6 days ago
To try to flatten experiments/periodic-stimulus.xml in Archive.zip results in a SegFault:
experiments/periodic-stimulus.xml
TEST(Experiment, experiment) { auto parser = libcellml::Parser::create(false); auto model = parser->parseModel(fileContents("importer/experiment/experiments/periodic-stimulus.xml")); EXPECT_EQ(size_t(0), parser->errorCount()); auto validator = libcellml::Validator::create(); validator->validateModel(model); EXPECT_EQ(size_t(0), validator->issueCount()); EXPECT_TRUE(model->hasUnresolvedImports()); auto importer = libcellml::Importer::create(false); importer->resolveImports(model, resourcePath("importer/experiment/experiments")); EXPECT_FALSE(model->hasUnresolvedImports()); auto flattenModel = importer->flattenModel(model); EXPECT_NE(nullptr, flattenModel); }
To try to flatten
experiments/periodic-stimulus.xml
in Archive.zip results in a SegFault: