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_pack.cxx | |
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 '')
-rw-r--r-- | test/test_pcm_pack.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_pcm_pack.cxx b/test/test_pcm_pack.cxx index 49840ddb0..0033ceb07 100644 --- a/test/test_pcm_pack.cxx +++ b/test/test_pcm_pack.cxx @@ -25,7 +25,7 @@ #include <glib.h> void -test_pcm_pack_24() +PcmPackTest::TestPack24() { constexpr unsigned N = 256; const auto src = TestDataBuffer<int32_t, N>(GlibRandomInt24()); @@ -44,12 +44,12 @@ test_pcm_pack_24() if (d & 0x800000) d |= 0xff000000; - g_assert_cmpint(d, ==, src[i]); + CPPUNIT_ASSERT_EQUAL(d, src[i]); } } void -test_pcm_unpack_24() +PcmPackTest::TestUnpack24() { constexpr unsigned N = 256; const auto src = TestDataBuffer<uint8_t, N * 3>(); @@ -68,6 +68,6 @@ test_pcm_unpack_24() if (s & 0x800000) s |= 0xff000000; - g_assert_cmpint(s, ==, dest[i]); + CPPUNIT_ASSERT_EQUAL(s, dest[i]); } } |