Commit a8d2aa8a authored by Stephen's avatar Stephen
Browse files

Clang format

parent d4ba2dae
......@@ -609,7 +609,7 @@ void CompositeFunction::replaceFunction(size_t functionIndex,
// Modify function parameter and attribute indices:
replaceVariableIndexRange(m_IFunction, np_old, np_new, functionIndex);
replaceVariableIndexRange(m_attributeIndex, at_old, at_new,functionIndex);
replaceVariableIndexRange(m_attributeIndex, at_old, at_new, functionIndex);
// Decrement attribute and parameter counts
size_t dnp = np_new - np_old;
......
......@@ -1395,7 +1395,6 @@ public:
TS_ASSERT_EQUALS(mfun->attributeName(0), "NumDeriv");
TS_ASSERT_EQUALS(mfun->attributeName(1), "f0.GaussAttribute");
TS_ASSERT_EQUALS(mfun->attributeName(2), "f1.CubicAttribute");
}
void test_replace_function_correctly_adds_attributes() {
......@@ -1405,7 +1404,6 @@ public:
auto cubic = std::make_shared<Cubic<true>>();
auto gaussWithAttributes = std::make_shared<Gauss<true>>();
mfun->addFunction(background);
mfun->addFunction(gauss);
mfun->addFunction(cubic);
......@@ -1422,6 +1420,5 @@ public:
TS_ASSERT_EQUALS(mfun->attributeName(1), "f0.LinearAttribute");
TS_ASSERT_EQUALS(mfun->attributeName(2), "f1.GaussAttribute");
TS_ASSERT_EQUALS(mfun->attributeName(3), "f2.CubicAttribute");
}
};
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment