21 #include "utilities.hpp"
59 CPPUNIT_ASSERT(
false);
64 CPPUNIT_ASSERT(pModel != NULL);
70 CPPUNIT_ASSERT(pReaction != NULL);
72 const CFunction* pFun = pReaction->getFunction();
74 CPPUNIT_ASSERT(pFun != NULL);
80 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
81 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">\n"
82 " <model id=\"model_1\" name=\"Model_1\">\n"
83 " <listOfCompartments>\n"
84 " <compartment id=\"compartment\" name=\"compartment\" size=\"1\" units=\"volume\"/>\n"
85 " </listOfCompartments>\n"
87 " <species id=\"S1\" name=\"S1\" compartment=\"compartment\" initialAmount=\"1\" substanceUnits=\"substance\"/>\n"
88 " <species id=\"S2\" name=\"S2\" compartment=\"compartment\" initialAmount=\"1\" substanceUnits=\"substance\"/>\n"
89 " <species id=\"S3\" name=\"S3\" compartment=\"compartment\" initialAmount=\"1\" substanceUnits=\"substance\"/>\n"
90 " <species id=\"S4\" name=\"S4\" compartment=\"compartment\" initialAmount=\"1\" substanceUnits=\"substance\"/>\n"
91 " <species id=\"S5\" name=\"S5\" compartment=\"compartment\" initialAmount=\"1\" substanceUnits=\"substance\" constant=\"true\"/>\n"
93 " <listOfParameters>\n"
94 " <parameter id=\"k1\" name=\"k1\" value=\"1\"/>\n"
95 " </listOfParameters>\n"
96 " <listOfReactions>\n"
97 " <reaction id=\"reaction1\" name=\"reaction1\" reversible=\"false\" fast=\"false\">\n"
98 " <listOfReactants>\n"
99 " <speciesReference species=\"S1\"/>\n"
100 " <speciesReference species=\"S2\"/>\n"
101 " </listOfReactants>\n"
102 " <listOfProducts>\n"
103 " <speciesReference species=\"S3\"/>\n"
104 " <speciesReference species=\"S4\"/>\n"
105 " </listOfProducts>\n"
106 " <listOfModifiers>\n"
107 " <modifierSpeciesReference species=\"S5\"/>\n"
108 " </listOfModifiers>\n"
110 " <math xmlns=\"http://www.w3.org/1998/Math/MathML\">\n"
113 " <ci> compartment </ci>\n"
120 " <cn type=\"integer\"> -1 </cn>\n"
126 " </listOfReactions>\n"
virtual size_t size() const
static const char * MODEL_STRING1
void test_mass_action_recognition_bug()
const CEvaluationTree::Type & getType() const
static CCopasiDataModel * addDatamodel()
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
The class for handling a chemical kinetic function.
CCopasiVectorNS< CReaction > & getReactions()
static void init(int argc, char *argv[], const bool &withGui=false)
static CCopasiDataModel * pCOPASIDATAMODEL