From 401a799a1b5de5d70a6b4c1d49235af0d5618f37 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Oct 2013 21:55:00 +0200 Subject: test: use the CPPUNIT framework for unit tests --- test/test_pcm_pack.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test_pcm_pack.cxx') 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 void -test_pcm_pack_24() +PcmPackTest::TestPack24() { constexpr unsigned N = 256; const auto src = TestDataBuffer(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(); @@ -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]); } } -- cgit v1.2.3