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->getAreaUnitEnum() ==
CModel::nm2);
78 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
79 CPPUNIT_ASSERT(pModel != NULL);
80 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
97 CPPUNIT_ASSERT(i != iMax);
105 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
106 CPPUNIT_ASSERT(pModel != NULL);
107 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
110 unsigned int found24 = 0;
111 unsigned int found55 = 0;
112 unsigned int found79 = 0;
113 unsigned int found66 = 0;
146 CPPUNIT_ASSERT(found55 == 0);
147 CPPUNIT_ASSERT(found24 == 0);
148 CPPUNIT_ASSERT(found79 == 0);
149 CPPUNIT_ASSERT(found66 == 1);
157 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
158 CPPUNIT_ASSERT(pModel != NULL);
159 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::mm2);
162 unsigned int found24 = 0;
163 unsigned int found55 = 0;
164 unsigned int found79 = 0;
165 unsigned int found66 = 0;
198 CPPUNIT_ASSERT(found55 == 0);
199 CPPUNIT_ASSERT(found24 == 0);
200 CPPUNIT_ASSERT(found79 == 0);
201 CPPUNIT_ASSERT(found66 == 0);
209 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
210 CPPUNIT_ASSERT(pModel != NULL);
211 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::nm2);
214 unsigned int found24 = 0;
215 unsigned int found55 = 0;
216 unsigned int found79 = 0;
217 unsigned int found66 = 0;
250 CPPUNIT_ASSERT(found55 == 0);
251 CPPUNIT_ASSERT(found24 == 0);
252 CPPUNIT_ASSERT(found79 == 1);
253 CPPUNIT_ASSERT(found66 == 0);
261 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
262 CPPUNIT_ASSERT(pModel != NULL);
263 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::nm2);
266 unsigned int found24 = 0;
267 unsigned int found55 = 0;
268 unsigned int found79 = 0;
269 unsigned int found66 = 0;
302 CPPUNIT_ASSERT(found55 == 0);
303 CPPUNIT_ASSERT(found24 == 0);
304 CPPUNIT_ASSERT(found79 == 0);
305 CPPUNIT_ASSERT(found66 == 1);
313 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
314 CPPUNIT_ASSERT(pModel != NULL);
315 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::nm2);
318 unsigned int found24 = 0;
319 unsigned int found55 = 0;
320 unsigned int found66 = 0;
321 unsigned int found79 = 0;
354 CPPUNIT_ASSERT(found55 == 0);
355 CPPUNIT_ASSERT(found24 == 0);
356 CPPUNIT_ASSERT(found79 == 0);
357 CPPUNIT_ASSERT(found66 == 0);
365 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
366 CPPUNIT_ASSERT(pModel != NULL);
367 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
370 unsigned int found24 = 0;
371 unsigned int found55 = 0;
372 unsigned int found66 = 0;
373 unsigned int found79 = 0;
406 CPPUNIT_ASSERT(found55 == 0);
407 CPPUNIT_ASSERT(found24 == 0);
408 CPPUNIT_ASSERT(found79 == 0);
409 CPPUNIT_ASSERT(found66 == 0);
417 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
418 CPPUNIT_ASSERT(pModel != NULL);
419 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
422 unsigned int found24 = 0;
423 unsigned int found55 = 0;
424 unsigned int found79 = 0;
425 unsigned int found66 = 0;
458 CPPUNIT_ASSERT(found55 == 0);
459 CPPUNIT_ASSERT(found24 == 0);
460 CPPUNIT_ASSERT(found79 == 1);
461 CPPUNIT_ASSERT(found66 == 0);
469 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
470 CPPUNIT_ASSERT(pModel != NULL);
471 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
474 unsigned int found24 = 0;
475 unsigned int found55 = 0;
476 unsigned int found66 = 0;
477 unsigned int found79 = 0;
510 CPPUNIT_ASSERT(found55 == 0);
511 CPPUNIT_ASSERT(found24 == 0);
512 CPPUNIT_ASSERT(found79 == 0);
513 CPPUNIT_ASSERT(found66 == 0);
521 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
522 CPPUNIT_ASSERT(pModel != NULL);
523 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
526 unsigned int found24 = 0;
527 unsigned int found55 = 0;
528 unsigned int found79 = 0;
529 unsigned int found66 = 0;
562 CPPUNIT_ASSERT(found55 == 0);
563 CPPUNIT_ASSERT(found24 == 0);
564 CPPUNIT_ASSERT(found79 == 1);
565 CPPUNIT_ASSERT(found66 == 0);
573 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
574 CPPUNIT_ASSERT(pModel != NULL);
575 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
578 unsigned int found24 = 0;
579 unsigned int found55 = 0;
580 unsigned int found79 = 0;
581 unsigned int found66 = 0;
614 CPPUNIT_ASSERT(found55 == 0);
615 CPPUNIT_ASSERT(found24 == 0);
616 CPPUNIT_ASSERT(found79 == 1);
617 CPPUNIT_ASSERT(found66 == 0);
625 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
626 CPPUNIT_ASSERT(pModel != NULL);
649 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
650 CPPUNIT_ASSERT(pModel != NULL);
651 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
654 unsigned int found24 = 0;
655 unsigned int found55 = 0;
656 unsigned int found79 = 0;
657 unsigned int found66 = 0;
690 CPPUNIT_ASSERT(found55 == 0);
691 CPPUNIT_ASSERT(found24 == 0);
692 CPPUNIT_ASSERT(found79 == 1);
693 CPPUNIT_ASSERT(found66 == 0);
701 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
702 CPPUNIT_ASSERT(pModel != NULL);
703 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
706 unsigned int found24 = 0;
707 unsigned int found55 = 0;
708 unsigned int found79 = 0;
709 unsigned int found66 = 0;
742 CPPUNIT_ASSERT(found55 == 0);
743 CPPUNIT_ASSERT(found24 == 0);
744 CPPUNIT_ASSERT(found79 == 1);
745 CPPUNIT_ASSERT(found66 == 0);
753 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
754 CPPUNIT_ASSERT(pModel != NULL);
755 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
758 unsigned int found24 = 0;
759 unsigned int found55 = 0;
760 unsigned int found79 = 0;
761 unsigned int found66 = 0;
794 CPPUNIT_ASSERT(found55 == 0);
795 CPPUNIT_ASSERT(found24 == 0);
796 CPPUNIT_ASSERT(found79 == 1);
797 CPPUNIT_ASSERT(found66 == 0);
805 CPPUNIT_ASSERT(pModel->getCompartments().size() == 1);
806 CPPUNIT_ASSERT(pModel != NULL);
807 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
810 unsigned int found24 = 0;
811 unsigned int found55 = 0;
812 unsigned int found79 = 0;
813 unsigned int found66 = 0;
846 CPPUNIT_ASSERT(found55 == 0);
847 CPPUNIT_ASSERT(found24 == 0);
848 CPPUNIT_ASSERT(found79 == 1);
849 CPPUNIT_ASSERT(found66 == 0);
857 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
858 CPPUNIT_ASSERT(pModel != NULL);
859 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
862 unsigned int found24 = 0;
863 unsigned int found55 = 0;
864 unsigned int found66 = 0;
865 unsigned int found79 = 0;
898 CPPUNIT_ASSERT(found55 == 0);
899 CPPUNIT_ASSERT(found24 == 0);
900 CPPUNIT_ASSERT(found79 == 0);
901 CPPUNIT_ASSERT(found66 == 0);
909 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
910 CPPUNIT_ASSERT(pModel != NULL);
911 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
914 unsigned int found24 = 0;
915 unsigned int found55 = 0;
916 unsigned int found66 = 0;
917 unsigned int found79 = 0;
950 CPPUNIT_ASSERT(found55 == 0);
951 CPPUNIT_ASSERT(found24 == 0);
952 CPPUNIT_ASSERT(found79 == 0);
953 CPPUNIT_ASSERT(found66 == 0);
961 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
962 CPPUNIT_ASSERT(pModel != NULL);
963 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
966 unsigned int found24 = 0;
967 unsigned int found55 = 0;
968 unsigned int found66 = 0;
969 unsigned int found79 = 0;
1002 CPPUNIT_ASSERT(found55 == 0);
1003 CPPUNIT_ASSERT(found24 == 1);
1004 CPPUNIT_ASSERT(found79 == 0);
1005 CPPUNIT_ASSERT(found66 == 0);
1013 CPPUNIT_ASSERT(pModel->getCompartments().size() == 2);
1014 CPPUNIT_ASSERT(pModel != NULL);
1015 CPPUNIT_ASSERT(pModel->getAreaUnitEnum() ==
CModel::m2);
1018 unsigned int found24 = 0;
1019 unsigned int found55 = 0;
1020 unsigned int found66 = 0;
1021 unsigned int found79 = 0;
1054 CPPUNIT_ASSERT(found55 == 0);
1055 CPPUNIT_ASSERT(found24 == 1);
1056 CPPUNIT_ASSERT(found79 == 0);
1057 CPPUNIT_ASSERT(found66 == 0);
1061 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1062 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1063 " <model id=\"Model_1\" name=\"New Model\">"
1065 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1066 " <p>L2V1 model with global area unit nm^2.</p>"
1069 " <listOfUnitDefinitions>"
1070 " <unitDefinition id=\"area\">"
1072 " <unit kind=\"metre\" scale=\"-9\" exponent=\"2\" />"
1074 " </unitDefinition>"
1075 " </listOfUnitDefinitions>"
1076 " <listOfCompartments>"
1077 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
1078 " </listOfCompartments>"
1084 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1085 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1086 " <model id=\"Model_1\" name=\"New Model\">"
1088 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1089 " <p>L2V1 model with global area unit 10e-4* m^2 .</p>"
1092 " <listOfUnitDefinitions>"
1093 " <unitDefinition id=\"area\">"
1095 " <unit kind=\"metre\" scale=\"-4\" exponent=\"2\"/>"
1097 " </unitDefinition>"
1098 " </listOfUnitDefinitions>"
1099 " <listOfCompartments>"
1100 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
1101 " </listOfCompartments>"
1107 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1108 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1109 " <model id=\"Model_1\" name=\"New Model\">"
1111 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1112 " <p>L2V1 model with global area unit mole.</p>"
1115 " <listOfUnitDefinitions>"
1116 " <unitDefinition id=\"area\">"
1118 " <unit kind=\"mole\" scale=\"0\"/>"
1120 " </unitDefinition>"
1121 " </listOfUnitDefinitions>"
1122 " <listOfCompartments>"
1123 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
1124 " </listOfCompartments>"
1130 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1131 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1132 " <model id=\"Model_1\" name=\"New Model\">"
1134 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1135 " <p>L2V1 model with global area unit nm^2</p>"
1136 " <p> and a compartment with mm^2 units</p>"
1139 " <listOfUnitDefinitions>"
1140 " <unitDefinition id=\"area\">"
1142 " <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
1144 " </unitDefinition>"
1145 " <unitDefinition id=\"my_area\">"
1147 " <unit kind=\"metre\" scale=\"-3\" exponent=\"2\"/>"
1149 " </unitDefinition>"
1150 " </listOfUnitDefinitions>"
1151 " <listOfCompartments>"
1152 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1153 " </listOfCompartments>"
1159 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1160 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1161 " <model id=\"Model_1\" name=\"New Model\">"
1163 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1164 " <p>L2V1 model with global area unit nm^2</p>"
1165 " <p>and a compartment with mole units.</p>"
1168 " <listOfUnitDefinitions>"
1169 " <unitDefinition id=\"area\">"
1171 " <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
1173 " </unitDefinition>"
1174 " <unitDefinition id=\"my_area\">"
1176 " <unit kind=\"mole\" scale=\"0\"/>"
1178 " </unitDefinition>"
1179 " </listOfUnitDefinitions>"
1180 " <listOfCompartments>"
1181 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1182 " </listOfCompartments>"
1188 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1189 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1190 " <model id=\"Model_1\" name=\"New Model\">"
1192 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1193 " <p>L2V1 model with global area unit mole</p>"
1194 " <p>and a compartment with nm^2 units.</p>"
1197 " <listOfUnitDefinitions>"
1198 " <unitDefinition id=\"my_area\">"
1200 " <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
1202 " </unitDefinition>"
1203 " <unitDefinition id=\"area\">"
1205 " <unit kind=\"mole\" scale=\"0\"/>"
1207 " </unitDefinition>"
1208 " </listOfUnitDefinitions>"
1209 " <listOfCompartments>"
1210 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1211 " </listOfCompartments>"
1217 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1218 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1219 " <model id=\"Model_1\" name=\"New Model\">"
1221 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1222 " <p>L2V1 model with no global area unit</p>"
1223 " <p>and a compartment with nm^2 units.</p>"
1226 " <listOfUnitDefinitions>"
1227 " <unitDefinition id=\"my_area\">"
1229 " <unit kind=\"metre\" scale=\"-9\" exponent=\"2\"/>"
1231 " </unitDefinition>"
1232 " </listOfUnitDefinitions>"
1233 " <listOfCompartments>"
1234 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1235 " </listOfCompartments>"
1241 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1242 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1243 " <model id=\"Model_1\" name=\"New Model\">"
1245 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1246 " <p>L2V1 model with no global area unit</p>"
1247 " <p>and a compartment with area units.</p>"
1250 " <listOfCompartments>"
1251 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"area\"/>"
1252 " </listOfCompartments>"
1258 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1259 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1260 " <model id=\"Model_1\" name=\"New Model\">"
1262 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1263 " <p>L2V1 model with no global area unit</p>"
1264 " <p>and a compartment with metre units.</p>"
1267 " <listOfCompartments>"
1268 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"metre\"/>"
1269 " </listOfCompartments>"
1275 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1276 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1277 " <model id=\"Model_1\" name=\"New Model\">"
1279 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1280 " <p>L2V1 model with no global area unit</p>"
1281 " <p>and a compartment with no units.</p>"
1284 " <listOfCompartments>"
1285 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
1286 " </listOfCompartments>"
1292 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1293 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1294 " <model id=\"Model_1\" name=\"New Model\">"
1296 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1297 " <p>L2V1 model with no global area unit</p>"
1298 " <p>and a 2D compartment with volume units.</p>"
1301 " <listOfCompartments>"
1302 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"volume\"/>"
1303 " </listOfCompartments>"
1309 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1310 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1311 " <model id=\"Model_1\" name=\"New Model\">"
1313 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1314 " <p>L2V1 model with no global area unit</p>"
1315 " <p>and a 2D compartment with length units.</p>"
1318 " <listOfCompartments>"
1319 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"length\"/>"
1320 " </listOfCompartments>"
1326 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1327 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1328 " <model id=\"Model_1\" name=\"New Model\">"
1330 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1331 " <p>L2V1 model with no global area unit</p>"
1332 " <p>and a 2D compartment with dimensionmess units.</p>"
1335 " <listOfCompartments>"
1336 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"dimensionless\"/>"
1337 " </listOfCompartments>"
1343 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1344 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1345 " <model id=\"Model_1\" name=\"New Model\">"
1347 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1348 " <p>L2V1 model with no global area unit</p>"
1349 " <p>and a 2D compartment with m^3 units.</p>"
1352 " <listOfUnitDefinitions>"
1353 " <unitDefinition id=\"my_area\">"
1355 " <unit kind=\"metre\" scale=\"0\" exponent=\"3\" />"
1357 " </unitDefinition>"
1358 " </listOfUnitDefinitions>"
1359 " <listOfCompartments>"
1360 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1361 " </listOfCompartments>"
1367 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1368 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1369 " <model id=\"Model_1\" name=\"New Model\">"
1371 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1372 " <p>L2V1 model with no global area unit</p>"
1373 " <p>and a 2D compartment with m units.</p>"
1376 " <listOfUnitDefinitions>"
1377 " <unitDefinition id=\"my_area\">"
1379 " <unit kind=\"metre\" scale=\"0\" />"
1381 " </unitDefinition>"
1382 " </listOfUnitDefinitions>"
1383 " <listOfCompartments>"
1384 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1385 " </listOfCompartments>"
1391 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1392 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1393 " <model id=\"Model_1\" name=\"New Model\">"
1395 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1396 " <p>L2V1 model with no global area unit</p>"
1397 " <p>and a 2D compartment with mole units.</p>"
1400 " <listOfUnitDefinitions>"
1401 " <unitDefinition id=\"my_area\">"
1403 " <unit kind=\"mole\" scale=\"0\" />"
1405 " </unitDefinition>"
1406 " </listOfUnitDefinitions>"
1407 " <listOfCompartments>"
1408 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1409 " </listOfCompartments>"
1415 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1416 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1417 " <model id=\"Model_1\" name=\"New Model\">"
1419 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1420 " <p>L2V1 model with no global area unit</p>"
1421 " <p>and a 2D compartment with substance units.</p>"
1424 " <listOfCompartments>"
1425 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"substance\"/>"
1426 " </listOfCompartments>"
1432 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1433 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1434 " <model id=\"Model_1\" name=\"New Model\">"
1436 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1437 " <p>L2V1 model with no global area unit</p>"
1438 " <p>and two compartments. One has no unit, the other uses area as the unit.</p>"
1441 " <listOfCompartments>"
1442 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
1443 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" units=\"area\"/>"
1444 " </listOfCompartments>"
1450 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1451 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1452 " <model id=\"Model_1\" name=\"New Model\">"
1454 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1455 " <p>L2V1 model with no global area unit</p>"
1456 " <p>and two compartments. One has no unit, the other uses metre^2 as the unit.</p>"
1459 " <listOfCompartments>"
1460 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
1461 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" units=\"area\"/>"
1462 " </listOfCompartments>"
1468 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1469 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1470 " <model id=\"Model_1\" name=\"New Model\">"
1472 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1473 " <p>L2V1 model with no global area unit</p>"
1474 " <p>and two compartments. One has no unit, the other uses nm^2 as the unit.</p>"
1477 " <listOfUnitDefinitions>"
1478 " <unitDefinition id=\"my_area\">"
1480 " <unit kind=\"metre\" scale=\"-9\" exponent=\"2\" />"
1482 " </unitDefinition>"
1483 " </listOfUnitDefinitions>"
1484 " <listOfCompartments>"
1485 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" />"
1486 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1487 " </listOfCompartments>"
1493 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1494 "<sbml xmlns=\"http://www.sbml.org/sbml/level2\" level=\"2\" version=\"1\">"
1495 " <model id=\"Model_1\" name=\"New Model\">"
1497 " <body xmlns=\"http://www.w3.org/1999/xhtml\">"
1498 " <p>L2V1 model with no global area unit</p>"
1499 " <p>and two compartments. One has nm^2 as the unit, the other one has no unit.</p>"
1502 " <listOfUnitDefinitions>"
1503 " <unitDefinition id=\"my_area\">"
1505 " <unit kind=\"metre\" scale=\"-9\" exponent=\"2\" />"
1507 " </unitDefinition>"
1508 " </listOfUnitDefinitions>"
1509 " <listOfCompartments>"
1510 " <compartment id=\"compartment_1\" name=\"compartment\" size=\"1\" spatialDimensions=\"2\" units=\"my_area\"/>"
1511 " <compartment id=\"compartment_2\" name=\"compartment_2\" size=\"1\" spatialDimensions=\"2\" />"
1512 " </listOfCompartments>"
static const char * MODEL_STRING1
void test_import_compartment_units_15()
static const char * MODEL_STRING19
static const char * MODEL_STRING9
static const char * MODEL_STRING18
void test_import_compartment_units_16()
void test_import_compartment_units_21()
static const char * MODEL_STRING6
void test_import_compartment_units_13()
static const char * MODEL_STRING8
void test_import_compartment_units_2()
void test_import_compartment_units_17()
const size_t & getNumber() const
static const char * MODEL_STRING21
static const char * MODEL_STRING13
static const char * MODEL_STRING11
static const char * MODEL_STRING2
void test_import_compartment_units_5()
void test_import_compartment_units_14()
static CCopasiDataModel * pCOPASIDATAMODEL
void test_import_compartment_units_20()
void test_import_compartment_units_12()
void test_import_compartment_units_11()
void test_import_compartment_units_8()
static const char * MODEL_STRING5
void test_import_compartment_units_7()
void test_import_compartment_units_9()
static const char * MODEL_STRING20
void test_import_compartment_units_10()
static CCopasiDataModel * addDatamodel()
void test_import_compartment_units_6()
static const char * MODEL_STRING12
void test_import_compartment_units_19()
static const char * MODEL_STRING17
void test_import_compartment_units_3()
static CCopasiMessage getLastMessage()
static const char * MODEL_STRING3
bool importSBMLFromString(const std::string &sbmlDocumentText, CProcessReport *pImportHandler=NULL, const bool &deleteOldData=true)
static const char * MODEL_STRING15
static void init(int argc, char *argv[], const bool &withGui=false)
static const char * MODEL_STRING10
static const char * MODEL_STRING14
void test_import_compartment_units_4()
static const char * MODEL_STRING4
static const char * MODEL_STRING16
void test_import_compartment_units_1()
static const char * MODEL_STRING7
void test_import_compartment_units_18()