16 #include "utilities.hpp"
50 for (i = 0; i < iMax; ++i)
61 CPPUNIT_ASSERT(found58 ==
true);
65 CPPUNIT_ASSERT(pModel != NULL);
68 CPPUNIT_ASSERT(pMV != NULL);
69 CPPUNIT_ASSERT(pMV->getExpression().empty());
75 CPPUNIT_ASSERT(result ==
true);
82 for (i = 0; i < iMax; ++i)
93 CPPUNIT_ASSERT(found58 ==
true);
97 CPPUNIT_ASSERT(pModel != NULL);
100 CPPUNIT_ASSERT(pMV != NULL);
101 CPPUNIT_ASSERT(pMV->getInitialExpression().empty());
103 CPPUNIT_ASSERT(fabs(pMV->getInitialValue() - 1.0) < 1e-6);
113 bool found58 =
false;
115 for (i = 0; i < iMax; ++i)
126 CPPUNIT_ASSERT(found58 ==
true);
130 CPPUNIT_ASSERT(pModel != NULL);
133 CPPUNIT_ASSERT(pMV != NULL);
135 CPPUNIT_ASSERT(fabs(pMV->getInitialValue() - 1.0) < 1e-6);
141 CPPUNIT_ASSERT(pEvent != NULL);
142 CPPUNIT_ASSERT(pEvent->getAssignments().size() == 0);
146 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
147 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">\n"
148 " <model id=\"model_1\" name=\"model\">\n"
149 " <listOfParameters>\n"
150 " <parameter constant=\"false\" id=\"parameter_1\"/>\n"
151 " </listOfParameters>\n"
153 " <assignmentRule variable=\"parameter_1\" />\n"
159 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
160 "<sbml xmlns=\"http://www.sbml.org/sbml/level2/version4\" level=\"2\" version=\"4\">\n"
161 " <model id=\"model_1\" name=\"model\">\n"
162 " <listOfParameters>\n"
163 " <parameter constant=\"false\" id=\"parameter_1\"/>\n"
164 " </listOfParameters>\n"
165 " <listOfInitialAssignments>\n"
166 " <initialAssignment symbol=\"parameter_1\" />\n"
167 " </listOfInitialAssignments>\n"
172 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
173 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">\n"
174 " <model id=\"model_1\" name=\"model\">\n"
175 " <listOfParameters>\n"
176 " <parameter constant=\"false\" id=\"parameter_1\"/>\n"
177 " </listOfParameters>\n"
181 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
184 " <ci> parameter_1 </ci>\n"
189 " <listOfEventAssignments>\n"
190 " <eventAssignment variable=\"parameter_1\" />\n"
191 " </listOfEventAssignments>\n"
static const char * MODEL_STRING2
Header file of class CModelEntity and CModelValue.
CCopasiVectorN< CEvent > & getEvents()
const CCopasiVectorN< CModelValue > & getModelValues() const
virtual size_t size() const
static CCopasiDataModel * pCOPASIDATAMODEL
static const char * MODEL_STRING1
const size_t & getNumber() const
void test_import_eventassignment_without_expression()
static CCopasiDataModel * addDatamodel()
void test_import_initialassignment_without_expression()
static CCopasiMessage getLastMessage()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static void init(int argc, char *argv[], const bool &withGui=false)
Header file of class CEvent.
void test_import_assignment_without_expression()
static const char * MODEL_STRING3