Skip to content

Commit b67cd71

Browse files
committed
[fitpanel test] Add extra check in CompareFuncPars
1 parent 02e3e4b commit b67cd71

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

gui/fitpanel/test/UnitTesting.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ class FitEditorUnitTesting
174174
int CompareFuncPars(std::vector<TFitEditor::FuncParamData_t>& pars)
175175
{
176176
int status = 0;
177+
178+
if (f->fFuncPars.size() != pars.size()) {
179+
fprintf(stderr, "ERROR: mismatch of parameters size fitpanel: %u refs: %u\n", (unsigned) f->fFuncPars.size(), (unsigned) pars.size());
180+
return 111;
181+
}
182+
177183
for ( unsigned int i = 0; i < f->fFuncPars.size(); ++i ) {
178184
for ( unsigned int j = 0; j < 3; ++j) {
179185
int internalStatus = equals(pars[i][j], f->fFuncPars[i][j]);

0 commit comments

Comments
 (0)