From 833e88c4a7ba40006923d475eff7e8ebb6caefe8 Mon Sep 17 00:00:00 2001 From: Lucian Smith Date: Thu, 21 Nov 2024 13:03:58 -0800 Subject: [PATCH] Add test for new code; fix spacing. --- src/sbml/packages/render/sbml/RenderCurve.cpp | 2 +- .../1322104-pass-00-01.xml | 266 ++++++++++++++++++ 2 files changed, 267 insertions(+), 1 deletion(-) create mode 100644 src/sbml/packages/render/validator/test/test-data/general-constraints/1322104-pass-00-01.xml diff --git a/src/sbml/packages/render/sbml/RenderCurve.cpp b/src/sbml/packages/render/sbml/RenderCurve.cpp index 152d8f1895..1acdba1746 100644 --- a/src/sbml/packages/render/sbml/RenderCurve.cpp +++ b/src/sbml/packages/render/sbml/RenderCurve.cpp @@ -1142,7 +1142,7 @@ RenderCurve::createObject(XMLInputStream& stream) const std::string& name = stream.peek().getName(); - if (name == "listOfCurveElements" || name=="listOfElements") + if (name == "listOfCurveElements" || name == "listOfElements") { if (mRenderPoints.size() != 0 && getErrorLog() != NULL) { diff --git a/src/sbml/packages/render/validator/test/test-data/general-constraints/1322104-pass-00-01.xml b/src/sbml/packages/render/validator/test/test-data/general-constraints/1322104-pass-00-01.xml new file mode 100644 index 0000000000..7883194dc4 --- /dev/null +++ b/src/sbml/packages/render/validator/test/test-data/general-constraints/1322104-pass-00-01.xml @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +