391 CPPUNIT_ASSERT(pModel != NULL);
392 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
393 CPPUNIT_ASSERT(pModel->getModelValues().size() == 0);
394 CPPUNIT_ASSERT(pModel->getReactions().size() == 0);
395 CPPUNIT_ASSERT(pModel->getMetabolites().size() == 1);
396 const CMetab* pMetab = pModel->getMetabolites()[0];
397 CPPUNIT_ASSERT(pMetab != NULL);
398 CPPUNIT_ASSERT(pMetab->getObjectName() ==
"A");
400 const CExpression* pExpr = pMetab->getExpressionPtr();
401 CPPUNIT_ASSERT(pExpr != NULL);
403 CPPUNIT_ASSERT(pRoot != NULL);
406 CPPUNIT_ASSERT(pChoiceNode != NULL);
408 CPPUNIT_ASSERT(pChild1 != NULL);
410 CPPUNIT_ASSERT(pChild2 != NULL);
414 CPPUNIT_ASSERT(pNumberNode != NULL);
415 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 0.1) / 0.1) < 1e-6);
417 CPPUNIT_ASSERT(pChild3 != NULL);
420 CPPUNIT_ASSERT(pChoiceNode);
424 CPPUNIT_ASSERT(pChild1 != NULL);
428 CPPUNIT_ASSERT(pNumberNode != NULL);
429 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 3.0) / 3.0) < 1e-6);
431 CPPUNIT_ASSERT(pChild2 != NULL);
435 CPPUNIT_ASSERT(pNumberNode != NULL);
436 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 4.0) / 4.0) < 1e-6);
440 CPPUNIT_ASSERT(pChild1 != NULL);
442 CPPUNIT_ASSERT(pChild2 != NULL);
446 CPPUNIT_ASSERT(pNumberNode != NULL);
447 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 0.2) / 0.2) < 1e-6);
449 CPPUNIT_ASSERT(pChild3 != NULL);
452 CPPUNIT_ASSERT(pChoiceNode);
456 CPPUNIT_ASSERT(pChild1 != NULL);
460 CPPUNIT_ASSERT(pNumberNode != NULL);
461 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 3.0) / 3.0) < 1e-6);
463 CPPUNIT_ASSERT(pChild2 != NULL);
467 CPPUNIT_ASSERT(pNumberNode != NULL);
468 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 4.0) / 4.0) < 1e-6);
472 CPPUNIT_ASSERT(pChild1 != NULL);
474 CPPUNIT_ASSERT(pChild2 != NULL);
478 CPPUNIT_ASSERT(pNumberNode != NULL);
479 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 0.3) / 0.3) < 1e-6);
481 CPPUNIT_ASSERT(pChild3 != NULL);
484 CPPUNIT_ASSERT(pChoiceNode);
488 CPPUNIT_ASSERT(pChild1 != NULL);
492 CPPUNIT_ASSERT(pNumberNode != NULL);
493 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 3.0) / 3.0) < 1e-6);
495 CPPUNIT_ASSERT(pChild2 != NULL);
499 CPPUNIT_ASSERT(pNumberNode != NULL);
500 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 4.0) / 4.0) < 1e-6);
504 CPPUNIT_ASSERT(pChild1 != NULL);
506 CPPUNIT_ASSERT(pChild2 != NULL);
510 CPPUNIT_ASSERT(pNumberNode != NULL);
511 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 0.4) / 0.4) < 1e-6);
513 CPPUNIT_ASSERT(pChild3 != NULL);
518 CPPUNIT_ASSERT(pNumberNode != NULL);
519 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 1.5) / 1.5) < 1e-6);
520 CPPUNIT_ASSERT(pChild3->getSibling() == NULL);
524 CPPUNIT_ASSERT(pChild1 != NULL);
528 CPPUNIT_ASSERT(pNumberNode != NULL);
529 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 3.0) / 3.0) < 1e-6);
531 CPPUNIT_ASSERT(pChild2 != NULL);
535 CPPUNIT_ASSERT(pNumberNode != NULL);
536 CPPUNIT_ASSERT(fabs((pNumberNode->getValue() - 4.0) / 4.0) < 1e-6);
static CCopasiDataModel * pCOPASIDATAMODEL
CCopasiNode< Data > * getSibling()
const Type & getType() const
static const char * MODEL_STRING_5
static Type type(const Type &type)
static Type subType(const Type &type)
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
CCopasiNode< Data > * getChild()