Mercurial > hg > svcore
diff base/test/TestMovingMedian.h @ 1574:cfcfec216c21 spectrogramparam
Fix win32 build annoyances
author | Chris Cannam |
---|---|
date | Fri, 09 Nov 2018 15:22:01 +0000 |
parents | f04038819c26 |
children |
line wrap: on
line diff
--- a/base/test/TestMovingMedian.h Thu Nov 08 15:02:30 2018 +0000 +++ b/base/test/TestMovingMedian.h Fri Nov 09 15:22:01 2018 +0000 @@ -33,18 +33,20 @@ void checkExpected(const vector<T> &output, const vector<T> &expected) { if (output.size() != expected.size()) { - cerr << "ERROR: output array size " << output.size() - << " differs from expected size " << expected.size() << endl; + std::cerr << "ERROR: output array size " << output.size() + << " differs from expected size " << expected.size() + << std::endl; } for (int i = 0; i < int(output.size()); ++i) { if (output[i] != expected[i]) { - cerr << "ERROR: Value at index " << i - << " in output array differs from expected" << endl; - cerr << "Output: "; - for (auto v: output) cerr << v << " "; - cerr << "\nExpected: "; - for (auto v: expected) cerr << v << " "; - cerr << endl; + std::cerr << "ERROR: Value at index " << i + << " in output array differs from expected" + << std::endl; + std::cerr << "Output: "; + for (auto v: output) std::cerr << v << " "; + std::cerr << "\nExpected: "; + for (auto v: expected) std::cerr << v << " "; + std::cerr << std::endl; break; } }