diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-09-19 15:12:08 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-09-19 15:14:24 +0200 |
commit | 62e577cee9e199692d15cf741c0e29ae28f25c52 (patch) | |
tree | 3cfe20ce434b986e58efbc9bececcda41502ed33 /test/imagecachetest.cc | |
parent | 19ac4649f16621430b7d34635410fd67fd8ef49e (diff) |
Make use of uUnit as a submodule (dgunit renamed).
Diffstat (limited to 'test/imagecachetest.cc')
-rw-r--r-- | test/imagecachetest.cc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/imagecachetest.cc b/test/imagecachetest.cc index ea2c99d..5471afb 100644 --- a/test/imagecachetest.cc +++ b/test/imagecachetest.cc @@ -24,7 +24,7 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include "dgunit.h" +#include <uunit.h> #include <cassert> @@ -49,46 +49,46 @@ public: }; class ImageCacheTest - : public DGUnit + : public uUnit { public: ImageCacheTest() { - DGUNIT_TEST(ImageCacheTest::refCountTest); + uUNIT_TEST(ImageCacheTest::refCountTest); } void refCountTest() { TestableImageCache imageCache; - DGUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(0u)); - DGUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); + uUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(0u)); + uUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); { auto image1{imageCache.getImage("foo")}; (void)image1; - DGUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(1u)); - DGUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); + uUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(1u)); + uUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); auto image2 = imageCache.getImage("bar"); - DGUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(1u)); - DGUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); + uUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(1u)); + uUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); auto image3 = imageCache.getImage("foo"); - DGUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(2u)); - DGUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); + uUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(2u)); + uUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); { auto image4 = imageCache.getImage("foo"); - DGUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(3u)); - DGUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); + uUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(3u)); + uUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); } - DGUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(2u)); - DGUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); + uUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(2u)); + uUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(1u)); } - DGUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(0u)); - DGUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); + uUNIT_ASSERT_EQUAL(imageCache.count("foo"), std::size_t(0u)); + uUNIT_ASSERT_EQUAL(imageCache.count("bar"), std::size_t(0u)); } }; |