From 14bef1f7b020e37e70a91bbe11b1ab0da3941a57 Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Tue, 14 Mar 2023 14:02:14 +0100 Subject: [PATCH] change operation from mul to minus to show incorrect results for this case --- src/sbml/test/TestSBMLTransforms.cpp | 6 +++--- src/sbml/test/test-data/multiple-functions.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sbml/test/TestSBMLTransforms.cpp b/src/sbml/test/TestSBMLTransforms.cpp index 276d276d31..50699da9ae 100644 --- a/src/sbml/test/TestSBMLTransforms.cpp +++ b/src/sbml/test/TestSBMLTransforms.cpp @@ -98,9 +98,9 @@ START_TEST (test_SBMLTransforms_replaceFD) safe_free(math); /* https://github.com/sbmlteam/libsbml/issues/299 */ - /* fd: f_relabelled(p, S1) = p * S1 */ + /* fd: f_relabelled(p, S1) = p - S1 */ /* ast: f_relabelled(S1, p) * compartmentOne / t */ - /* ast after replaceFD: p * S1 * compartmentOne / t */ + /* ast after replaceFD: (S1 - p) * compartmentOne / t */ // use initial assignment instead of reaction, because the reaction // got flagged as having invalid units @@ -114,7 +114,7 @@ START_TEST (test_SBMLTransforms_replaceFD) SBMLTransforms::replaceFD(&ast, fd); math = SBML_formulaToString(&ast); - fail_unless (!strcmp(math, "p * S1 * compartmentOne / t"), NULL); + fail_unless (!strcmp(math, "(S1 - p) * compartmentOne / t"), NULL); safe_free(math); /* one function definition - nested */ diff --git a/src/sbml/test/test-data/multiple-functions.xml b/src/sbml/test/test-data/multiple-functions.xml index 0e0019b61d..db1f13ca69 100644 --- a/src/sbml/test/test-data/multiple-functions.xml +++ b/src/sbml/test/test-data/multiple-functions.xml @@ -46,7 +46,7 @@ S1 - + p S1