/** * @return true if the Validator behaved as expected when validating * TestFile, false otherwise. */ bool runL2v2Test (const TestFile& file) { L2v2CompatibilityValidator validator; TestValidator tester(validator); validator.init(); return tester.test(file); }
/* * Performs a set of semantic consistency checks on the document to establish * whether it is compatible with L2v2 and can be converted. Query * the results by calling getNumErrors() and getError(). * * @return the number of failed checks (errors) encountered. */ unsigned int SBMLInternalValidator::checkL2v2Compatibility () { if (getModel() == NULL) return 0; L2v2CompatibilityValidator validator; validator.init(); unsigned int nerrors = validator.validate(*getDocument()); if (nerrors > 0) getErrorLog()->add( validator.getFailures() ); return nerrors; }