summaryrefslogtreecommitdiffhomepage
path: root/test/bitmask.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-10 11:53:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-10 11:53:29 +0200
commitb59818c46688ac04c3aae0edc7b3d11cd4a782b0 (patch)
tree49c7d98755b2354502192cb401cbfea83c5353bc /test/bitmask.cpp
parent64ba60362e057923ffc247770d364578241ddd45 (diff)
a
Diffstat (limited to 'test/bitmask.cpp')
-rw-r--r--test/bitmask.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/bitmask.cpp b/test/bitmask.cpp
index caaaad13..cb19242e 100644
--- a/test/bitmask.cpp
+++ b/test/bitmask.cpp
@@ -4,7 +4,8 @@
#include "loader/loader.hpp"
#include <Corrade/Containers/ArrayView.h>
#include <Corrade/Containers/StridedArrayView.h>
-#include <Magnum/Trade/ImageData.h>
+#include <mg/Functions.h>
+#include <mg/ImageData.h>
namespace floormat {
@@ -36,11 +37,10 @@ void bitmask_test()
printf("\n");
fflush(stdout);
#endif
- fm_assert(img.size().product() == Int{data_nbytes});
- const auto len = std::min(data_nbytes, (size_t)bitmask.size()+7 >> 3);
+ const auto len = Math::min(data_nbytes, (size_t)bitmask.size()+7 >> 3);
for (auto i = 0uz; i < len; i++)
if ((unsigned char)bitmask.data()[i] != img_bitmask[i])
- fm_abort("wrong value at bit %zu, should be' 0x%02hhx'", i, img_bitmask[i]);
+ fm_abort("wrong value at byte %zu, should be' 0x%02hhx'", i, img_bitmask[i]);
}
} // namespace