22 #include "utilities.hpp"
27 #include "sbml/SBMLDocument.h"
28 #include "sbml/Model.h"
29 #include "sbml/Compartment.h"
30 #include "sbml/UnitDefinition.h"
31 #include "sbml/Unit.h"
32 #include "sbml/UnitKind.h"
54 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
55 CPPUNIT_ASSERT(pModel != NULL);
56 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::nl);
77 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
78 CPPUNIT_ASSERT(pModel != NULL);
79 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
96 CPPUNIT_ASSERT(i != iMax);
104 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
105 CPPUNIT_ASSERT(pModel != NULL);
106 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
109 unsigned int found24 = 0;
110 unsigned int found55 = 0;
111 unsigned int found79 = 0;
112 unsigned int found66 = 0;
145 CPPUNIT_ASSERT(found55 == 0);
146 CPPUNIT_ASSERT(found24 == 0);
147 CPPUNIT_ASSERT(found79 == 0);
148 CPPUNIT_ASSERT(found66 == 1);
156 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
157 CPPUNIT_ASSERT(pModel != NULL);
158 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::ml);
161 unsigned int found24 = 0;
162 unsigned int found55 = 0;
163 unsigned int found79 = 0;
190 CPPUNIT_ASSERT(found55 == 0);
191 CPPUNIT_ASSERT(found24 == 0);
192 CPPUNIT_ASSERT(found79 == 0);
200 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
201 CPPUNIT_ASSERT(pModel != NULL);
202 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::nl);
205 unsigned int found24 = 0;
206 unsigned int found55 = 0;
207 unsigned int found79 = 0;
234 CPPUNIT_ASSERT(found55 == 0);
235 CPPUNIT_ASSERT(found24 == 0);
236 CPPUNIT_ASSERT(found79 == 1);
244 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
245 CPPUNIT_ASSERT(pModel != NULL);
246 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::nl);
249 unsigned int found24 = 0;
250 unsigned int found55 = 0;
251 unsigned int found79 = 0;
252 unsigned int found66 = 0;
285 CPPUNIT_ASSERT(found55 == 0);
286 CPPUNIT_ASSERT(found24 == 0);
287 CPPUNIT_ASSERT(found79 == 0);
288 CPPUNIT_ASSERT(found66 == 1);
296 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
297 CPPUNIT_ASSERT(pModel != NULL);
298 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::nl);
301 unsigned int found24 = 0;
302 unsigned int found55 = 0;
303 unsigned int found79 = 0;
330 CPPUNIT_ASSERT(found55 == 0);
331 CPPUNIT_ASSERT(found24 == 0);
332 CPPUNIT_ASSERT(found79 == 0);
340 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
341 CPPUNIT_ASSERT(pModel != NULL);
342 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
345 unsigned int found24 = 0;
346 unsigned int found55 = 0;
347 unsigned int found79 = 0;
374 CPPUNIT_ASSERT(found55 == 0);
375 CPPUNIT_ASSERT(found24 == 0);
376 CPPUNIT_ASSERT(found79 == 0);
384 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
385 CPPUNIT_ASSERT(pModel != NULL);
386 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
389 unsigned int found24 = 0;
390 unsigned int found55 = 0;
391 unsigned int found79 = 0;
418 CPPUNIT_ASSERT(found55 == 0);
419 CPPUNIT_ASSERT(found24 == 0);
420 CPPUNIT_ASSERT(found79 == 0);
428 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
429 CPPUNIT_ASSERT(pModel != NULL);
430 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
433 unsigned int found24 = 0;
434 unsigned int found55 = 0;
435 unsigned int found79 = 0;
462 CPPUNIT_ASSERT(found55 == 0);
463 CPPUNIT_ASSERT(found24 == 0);
464 CPPUNIT_ASSERT(found79 == 0);
472 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
473 CPPUNIT_ASSERT(pModel != NULL);
474 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
477 unsigned int found24 = 0;
478 unsigned int found55 = 0;
479 unsigned int found79 = 0;
506 CPPUNIT_ASSERT(found55 == 0);
507 CPPUNIT_ASSERT(found24 == 0);
508 CPPUNIT_ASSERT(found79 == 1);
516 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
517 CPPUNIT_ASSERT(pModel != NULL);
518 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
521 unsigned int found24 = 0;
522 unsigned int found55 = 0;
523 unsigned int found79 = 0;
550 CPPUNIT_ASSERT(found55 == 0);
551 CPPUNIT_ASSERT(found24 == 0);
552 CPPUNIT_ASSERT(found79 == 1);
560 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
561 CPPUNIT_ASSERT(pModel != NULL);
583 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
584 CPPUNIT_ASSERT(pModel != NULL);
585 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
588 unsigned int found24 = 0;
589 unsigned int found55 = 0;
590 unsigned int found79 = 0;
617 CPPUNIT_ASSERT(found55 == 0);
618 CPPUNIT_ASSERT(found24 == 0);
619 CPPUNIT_ASSERT(found79 == 1);
627 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
628 CPPUNIT_ASSERT(pModel != NULL);
629 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
632 unsigned int found24 = 0;
633 unsigned int found55 = 0;
634 unsigned int found79 = 0;
661 CPPUNIT_ASSERT(found55 == 0);
662 CPPUNIT_ASSERT(found24 == 0);
663 CPPUNIT_ASSERT(found79 == 1);
671 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
672 CPPUNIT_ASSERT(pModel != NULL);
673 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
676 unsigned int found24 = 0;
677 unsigned int found55 = 0;
678 unsigned int found79 = 0;
705 CPPUNIT_ASSERT(found55 == 0);
706 CPPUNIT_ASSERT(found24 == 0);
707 CPPUNIT_ASSERT(found79 == 1);
715 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
716 CPPUNIT_ASSERT(pModel != NULL);
717 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
720 unsigned int found24 = 0;
721 unsigned int found55 = 0;
722 unsigned int found79 = 0;
749 CPPUNIT_ASSERT(found55 == 0);
750 CPPUNIT_ASSERT(found24 == 0);
751 CPPUNIT_ASSERT(found79 == 1);
759 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
760 CPPUNIT_ASSERT(pModel != NULL);
761 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
764 unsigned int found24 = 0;
765 unsigned int found55 = 0;
766 unsigned int found79 = 0;
793 CPPUNIT_ASSERT(found55 == 0);
794 CPPUNIT_ASSERT(found24 == 0);
795 CPPUNIT_ASSERT(found79 == 0);
803 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
804 CPPUNIT_ASSERT(pModel != NULL);
805 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
808 unsigned int found24 = 0;
809 unsigned int found55 = 0;
810 unsigned int found79 = 0;
837 CPPUNIT_ASSERT(found55 == 0);
838 CPPUNIT_ASSERT(found24 == 0);
839 CPPUNIT_ASSERT(found79 == 0);
847 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
848 CPPUNIT_ASSERT(pModel != NULL);
849 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
852 unsigned int found24 = 0;
853 unsigned int found55 = 0;
854 unsigned int found79 = 0;
881 CPPUNIT_ASSERT(found55 == 0);
882 CPPUNIT_ASSERT(found24 == 1);
883 CPPUNIT_ASSERT(found79 == 0);
891 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
892 CPPUNIT_ASSERT(pModel != NULL);
893 CPPUNIT_ASSERT(pModel->getVolumeUnitEnum() ==
CModel::l);
896 unsigned int found24 = 0;
897 unsigned int found55 = 0;
898 unsigned int found79 = 0;
925 CPPUNIT_ASSERT(found55 == 0);
926 CPPUNIT_ASSERT(found79 == 0);
927 CPPUNIT_ASSERT(found24 == 1);
931 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
932 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
933 " <model id=\"Model_1\" name=\"New Model\">"
935 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
936 " <p>L2V1 model with global volume unit nl.</p>"
939 " <listOfUnitDefinitions>"
940 " <unitDefinition id=\"volume\">"
942 " <unit kind=\"litre\" scale=\"-9\"/>"
945 " </listOfUnitDefinitions>"
946 " <listOfCompartments>"
947 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
948 " </listOfCompartments>"
954 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
955 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
956 " <model id=\"Model_1\" name=\"New Model\">"
958 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
959 " <p>L2V1 model with global volume unit 10e-4* l.</p>"
962 " <listOfUnitDefinitions>"
963 " <unitDefinition id=\"volume\">"
965 " <unit kind=\"litre\" scale=\"-4\"/>"
968 " </listOfUnitDefinitions>"
969 " <listOfCompartments>"
970 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
971 " </listOfCompartments>"
977 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
978 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
979 " <model id=\"Model_1\" name=\"New Model\">"
981 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
982 " <p>L2V1 model with global volume unit mole.</p>"
985 " <listOfUnitDefinitions>"
986 " <unitDefinition id=\"volume\">"
988 " <unit kind=\"mole\" scale=\"0\"/>"
991 " </listOfUnitDefinitions>"
992 " <listOfCompartments>"
993 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\"/>"
994 " </listOfCompartments>"
1000 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1001 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1002 " <model id=\"Model_1\" name=\"New Model\">"
1004 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1005 " <p>L2V1 model with global volume unit nl</p>"
1006 " <p> and a compartment with ml units</p>"
1009 " <listOfUnitDefinitions>"
1010 " <unitDefinition id=\"volume\">"
1012 " <unit kind=\"litre\" scale=\"-9\"/>"
1014 " </unitDefinition>"
1015 " <unitDefinition id=\"my_volume\">"
1017 " <unit kind=\"litre\" scale=\"-3\"/>"
1019 " </unitDefinition>"
1020 " </listOfUnitDefinitions>"
1021 " <listOfCompartments>"
1022 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1023 " </listOfCompartments>"
1029 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1030 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1031 " <model id=\"Model_1\" name=\"New Model\">"
1033 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1034 " <p>L2V1 model with global volume unit nl</p>"
1035 " <p>and a compartment with mole units.</p>"
1038 " <listOfUnitDefinitions>"
1039 " <unitDefinition id=\"volume\">"
1041 " <unit kind=\"litre\" scale=\"-9\"/>"
1043 " </unitDefinition>"
1044 " <unitDefinition id=\"my_volume\">"
1046 " <unit kind=\"mole\" scale=\"0\"/>"
1048 " </unitDefinition>"
1049 " </listOfUnitDefinitions>"
1050 " <listOfCompartments>"
1051 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1052 " </listOfCompartments>"
1058 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1059 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1060 " <model id=\"Model_1\" name=\"New Model\">"
1062 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1063 " <p>L2V1 model with global volume unit mole</p>"
1064 " <p>and a compartment with nl units.</p>"
1067 " <listOfUnitDefinitions>"
1068 " <unitDefinition id=\"my_volume\">"
1070 " <unit kind=\"litre\" scale=\"-9\"/>"
1072 " </unitDefinition>"
1073 " <unitDefinition id=\"volume\">"
1075 " <unit kind=\"mole\" scale=\"0\"/>"
1077 " </unitDefinition>"
1078 " </listOfUnitDefinitions>"
1079 " <listOfCompartments>"
1080 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1081 " </listOfCompartments>"
1087 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1088 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1089 " <model id=\"Model_1\" name=\"New Model\">"
1091 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1092 " <p>L2V1 model with no global volume unit</p>"
1093 " <p>and a compartment with nl units.</p>"
1096 " <listOfUnitDefinitions>"
1097 " <unitDefinition id=\"my_volume\">"
1099 " <unit kind=\"litre\" scale=\"-9\"/>"
1101 " </unitDefinition>"
1102 " </listOfUnitDefinitions>"
1103 " <listOfCompartments>"
1104 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1105 " </listOfCompartments>"
1111 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1112 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1113 " <model id=\"Model_1\" name=\"New Model\">"
1115 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1116 " <p>L2V1 model with no global volume unit</p>"
1117 " <p>and a compartment with volume units.</p>"
1120 " <listOfCompartments>"
1121 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"volume\"/>"
1122 " </listOfCompartments>"
1128 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1129 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1130 " <model id=\"Model_1\" name=\"New Model\">"
1132 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1133 " <p>L2V1 model with no global volume unit</p>"
1134 " <p>and a compartment with litre units.</p>"
1137 " <listOfCompartments>"
1138 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"litre\"/>"
1139 " </listOfCompartments>"
1145 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1146 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1147 " <model id=\"Model_1\" name=\"New Model\">"
1149 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1150 " <p>L2V1 model with no global volume unit</p>"
1151 " <p>and a compartment with no units.</p>"
1154 " <listOfCompartments>"
1155 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
1156 " </listOfCompartments>"
1162 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1163 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1164 " <model id=\"Model_1\" name=\"New Model\">"
1166 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1167 " <p>L2V1 model with no global volume unit</p>"
1168 " <p>and a 3D compartment with area units.</p>"
1171 " <listOfCompartments>"
1172 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"area\"/>"
1173 " </listOfCompartments>"
1179 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1180 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1181 " <model id=\"Model_1\" name=\"New Model\">"
1183 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1184 " <p>L2V1 model with no global volume unit</p>"
1185 " <p>and a 3D compartment with length units.</p>"
1188 " <listOfCompartments>"
1189 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"length\"/>"
1190 " </listOfCompartments>"
1196 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1197 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1198 " <model id=\"Model_1\" name=\"New Model\">"
1200 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1201 " <p>L2V1 model with no global volume unit</p>"
1202 " <p>and a 3D compartment with dimensionless units.</p>"
1205 " <listOfCompartments>"
1206 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"dimensionless\"/>"
1207 " </listOfCompartments>"
1213 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1214 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1215 " <model id=\"Model_1\" name=\"New Model\">"
1217 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1218 " <p>L2V1 model with no global volume unit</p>"
1219 " <p>and a 3D compartment with m^2 units.</p>"
1222 " <listOfUnitDefinitions>"
1223 " <unitDefinition id=\"my_volume\">"
1225 " <unit kind=\"metre\" scale=\"0\" exponent=\"2\" />"
1227 " </unitDefinition>"
1228 " </listOfUnitDefinitions>"
1229 " <listOfCompartments>"
1230 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1231 " </listOfCompartments>"
1237 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1238 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1239 " <model id=\"Model_1\" name=\"New Model\">"
1241 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1242 " <p>L2V1 model with no global volume unit</p>"
1243 " <p>and a 3D compartment with m units.</p>"
1246 " <listOfUnitDefinitions>"
1247 " <unitDefinition id=\"my_volume\">"
1249 " <unit kind=\"metre\" scale=\"0\" />"
1251 " </unitDefinition>"
1252 " </listOfUnitDefinitions>"
1253 " <listOfCompartments>"
1254 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1255 " </listOfCompartments>"
1261 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1262 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1263 " <model id=\"Model_1\" name=\"New Model\">"
1265 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1266 " <p>L2V1 model with no global volume unit</p>"
1267 " <p>and a 3D compartment with mole units.</p>"
1270 " <listOfUnitDefinitions>"
1271 " <unitDefinition id=\"my_volume\">"
1273 " <unit kind=\"mole\" scale=\"0\" />"
1275 " </unitDefinition>"
1276 " </listOfUnitDefinitions>"
1277 " <listOfCompartments>"
1278 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1279 " </listOfCompartments>"
1285 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1286 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1287 " <model id=\"Model_1\" name=\"New Model\">"
1289 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1290 " <p>L2V1 model with no global volume unit</p>"
1291 " <p>and a 3D compartment with substance units.</p>"
1294 " <listOfCompartments>"
1295 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"substance\"/>"
1296 " </listOfCompartments>"
1302 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1303 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1304 " <model id=\"Model_1\" name=\"New Model\">"
1306 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1307 " <p>L2V1 model with no global volume unit</p>"
1308 " <p>and two compartments. One has no unit, the other uses volume as the unit.</p>"
1311 " <listOfCompartments>"
1312 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
1313 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" units=\"volume\"/>"
1314 " </listOfCompartments>"
1320 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1321 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1322 " <model id=\"Model_1\" name=\"New Model\">"
1324 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1325 " <p>L2V1 model with no global volume unit</p>"
1326 " <p>and two compartments. One has no unit, the other uses litre as the unit.</p>"
1329 " <listOfCompartments>"
1330 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
1331 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" units=\"litre\"/>"
1332 " </listOfCompartments>"
1338 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1339 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1340 " <model id=\"Model_1\" name=\"New Model\">"
1342 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1343 " <p>L2V1 model with no global volume unit</p>"
1344 " <p>and two compartments. One has no unit, the other uses nl as the unit.</p>"
1347 " <listOfUnitDefinitions>"
1348 " <unitDefinition id=\"my_volume\">"
1350 " <unit kind=\"litre\" scale=\"-9\" />"
1352 " </unitDefinition>"
1353 " </listOfUnitDefinitions>"
1354 " <listOfCompartments>"
1355 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" />"
1356 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" units=\"my_volume\"/>"
1357 " </listOfCompartments>"
1363 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1364 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1365 " <model id=\"Model_1\" name=\"New Model\">"
1367 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1368 " <p>L2V1 model with no global volume unit</p>"
1369 " <p>and two compartments. One has nl as the unit, the other one has no unit.</p>"
1372 " <listOfUnitDefinitions>"
1373 " <unitDefinition id=\"my_volume\">"
1375 " <unit kind=\"litre\" scale=\"-9\" />"
1377 " </unitDefinition>"
1378 " </listOfUnitDefinitions>"
1379 " <listOfCompartments>"
1380 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" units=\"my_volume\"/>"
1381 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" />"
1382 " </listOfCompartments>"
void test_import_compartment_units_10()
void test_import_compartment_units_5()
static const char * MODEL_STRING2
void test_import_compartment_units_16()
void test_import_compartment_units_21()
void test_import_compartment_units_15()
void test_import_compartment_units_8()
void test_import_compartment_units_9()
void test_import_compartment_units_3()
const size_t & getNumber() const
void test_import_compartment_units_14()
static const char * MODEL_STRING16
void test_import_compartment_units_13()
static const char * MODEL_STRING21
static const char * MODEL_STRING15
static const char * MODEL_STRING17
void test_import_compartment_units_2()
static const char * MODEL_STRING8
void test_import_compartment_units_19()
void test_import_compartment_units_12()
static CCopasiDataModel * pCOPASIDATAMODEL
void test_import_compartment_units_7()
void test_import_compartment_units_20()
static const char * MODEL_STRING7
static const char * MODEL_STRING19
static const char * MODEL_STRING1
void test_import_compartment_units_6()
static const char * MODEL_STRING3
void test_import_compartment_units_4()
static CCopasiDataModel * addDatamodel()
void test_import_compartment_units_11()
static const char * MODEL_STRING4
static const char * MODEL_STRING9
static const char * MODEL_STRING13
static const char * MODEL_STRING18
static const char * MODEL_STRING6
static CCopasiMessage getLastMessage()
static const char * MODEL_STRING12
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
void test_import_compartment_units_18()
static void init(int argc, char *argv[], const bool &withGui=false)
static const char * MODEL_STRING14
static const char * MODEL_STRING10
static const char * MODEL_STRING11
static const char * MODEL_STRING5
static const char * MODEL_STRING20
void test_import_compartment_units_17()
void test_import_compartment_units_1()