From 44458f5b3737595549b53875d6181898b46d5276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 13 Nov 2019 20:49:00 +0100 Subject: [PATCH] Trade: explanatory message in a test. --- src/Magnum/Trade/Test/ImageDataTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Trade/Test/ImageDataTest.cpp b/src/Magnum/Trade/Test/ImageDataTest.cpp index 37bcff788..28564d6d0 100644 --- a/src/Magnum/Trade/Test/ImageDataTest.cpp +++ b/src/Magnum/Trade/Test/ImageDataTest.cpp @@ -712,6 +712,9 @@ void ImageDataTest::pixelsCompressed() { Error redirectError{&out}; a.pixels(); + /* a.pixels() calls non-templated pixels(), so assume there it will + blow up correctly as well (can't test because it asserts inside + arrayCast() due to zero stride) */ CORRADE_COMPARE(out.str(), "Trade::ImageData::pixels(): the image is compressed\n"); }