From 453bd93a6855940781e6945b3020785aacc80dd1 Mon Sep 17 00:00:00 2001 From: David Nickerson Date: Wed, 6 Sep 2017 13:27:34 +1200 Subject: [PATCH] Correct expected string. Forgot that when appending the math the whitespace between math elements in the file will be dropped from the component's math string. --- tests/parser/file_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/parser/file_parser.cpp b/tests/parser/file_parser.cpp index e37660f33..f1c9cf0d5 100644 --- a/tests/parser/file_parser.cpp +++ b/tests/parser/file_parser.cpp @@ -112,7 +112,7 @@ TEST(Parser, parseModelWithComponentsWithMultipleMathElements) { // This test resulted from https://github.com/cellml/libcellml/issues/183 std::string e1 = "\n\t\t\t\n\t\t\t\ta1\n\t\t\t\t\n\t\t\t\t\tb1\n\t\t\t\t\tc1\n\t\t\t\t\n\t\t\t\n\t\t"; - std::string e2 = "\n\t\t\t\n\t\t\t\tb2\n\t\t\t\t\n\t\t\t\t\t2.0\n\t\t\t\t\td\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\td\n\t\t\t\t0.51\n\t\t\t\n\t\t"; + std::string e2 = "\n\t\t\t\n\t\t\t\tb2\n\t\t\t\t\n\t\t\t\t\t2.0\n\t\t\t\t\td\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\t\td\n\t\t\t\t0.51\n\t\t\t\n\t\t"; std::ifstream t(TestResources::getLocation( TestResources::CELLML_A_PLUS_B_MODEL_RESOURCE));