Mercurial > hg > qm-dsp
diff tests/TestFilter.cpp @ 505:930b5b0f707d
Merge branch 'codestyle-and-tidy'
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 05 Jun 2019 12:55:15 +0100 |
parents | 2de6184b2ce0 |
children |
line wrap: on
line diff
--- a/tests/TestFilter.cpp Thu May 30 16:18:13 2019 +0100 +++ b/tests/TestFilter.cpp Wed Jun 05 12:55:15 2019 +0100 @@ -38,7 +38,7 @@ double thresh = 1e-12; for (int i = 0; i < n; ++i) { - BOOST_CHECK_SMALL(out[i] - expected[i], thresh); + BOOST_CHECK_SMALL(out[i] - expected[i], thresh); } } @@ -56,20 +56,20 @@ int j = 0; int i = 0; while (j < n) { - if (++i == 4) { - i = 1; - } - if (j + i >= n) { - i = n - j; - } - f.process(in.data() + j, out.data() + j, i); - j += i; + if (++i == 4) { + i = 1; + } + if (j + i >= n) { + i = n - j; + } + f.process(in.data() + j, out.data() + j, i); + j += i; } double thresh = 1e-12; for (int i = 0; i < n; ++i) { - BOOST_CHECK_SMALL(out[i] - expected[i], thresh); + BOOST_CHECK_SMALL(out[i] - expected[i], thresh); } } @@ -88,7 +88,7 @@ double thresh = 1e-4; for (int i = 0; i < n; ++i) { - BOOST_CHECK_SMALL(out[i] - expected[i], thresh); + BOOST_CHECK_SMALL(out[i] - expected[i], thresh); } }