diff --git a/tests/src/serverTestSpectrumArray.cpp b/tests/src/serverTestSpectrumArray.cpp index b3925f8a62943964c70127b5f82d661707a93d3e..68c65d5f626a6161467c3f982f20b8b15ce8a7e4 100644 --- a/tests/src/serverTestSpectrumArray.cpp +++ b/tests/src/serverTestSpectrumArray.cpp @@ -30,11 +30,17 @@ static bool testArrayContent(std::string const& propertyName, T testStartValue, auto array = DoocsServerTestHelper::doocsGetArray<T>(propertyName); bool isOK = true; T currentTestValue = testStartValue; + size_t index = 0; for(auto val : array) { if(std::fabs(val - currentTestValue) > 0.001) { + if(isOK) { + std::cout << "Array " << propertyName << " does not contain expected values. First mismatching data at index " + << index << ": " << val << " != " << currentTestValue << std::endl; + } isOK = false; } currentTestValue += delta; + ++index; } return isOK; }