diff options
author | Max Kellermann <max@duempel.org> | 2013-10-16 21:55:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-16 23:36:36 +0200 |
commit | 401a799a1b5de5d70a6b4c1d49235af0d5618f37 (patch) | |
tree | 503db86df98400dac818fa3bbfbe20e2055a1fa4 /test/test_pcm_util.hxx | |
parent | ba98518c69d0501e67ef707f0d718cc678851415 (diff) | |
download | mpd-401a799a1b5de5d70a6b4c1d49235af0d5618f37.tar.gz mpd-401a799a1b5de5d70a6b4c1d49235af0d5618f37.tar.xz mpd-401a799a1b5de5d70a6b4c1d49235af0d5618f37.zip |
test: use the CPPUNIT framework for unit tests
Diffstat (limited to 'test/test_pcm_util.hxx')
-rw-r--r-- | test/test_pcm_util.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_pcm_util.hxx b/test/test_pcm_util.hxx index 84ba074fd..df12aa067 100644 --- a/test/test_pcm_util.hxx +++ b/test/test_pcm_util.hxx @@ -72,13 +72,13 @@ template<typename T> bool AssertEqualWithTolerance(const T &a, const T &b, unsigned tolerance) { - g_assert_cmpint(a.size(), ==, b.size()); + CPPUNIT_ASSERT_EQUAL(a.size(), b.size()); for (unsigned i = 0; i < a.size(); ++i) { int64_t x = a[i], y = b[i]; - g_assert_cmpint(x, >=, y - int64_t(tolerance)); - g_assert_cmpint(x, <=, y + int64_t(tolerance)); + CPPUNIT_ASSERT(x >= y - int64_t(tolerance)); + CPPUNIT_ASSERT(x <= y + int64_t(tolerance)); } return true; |