Browse Source

Test: this test is redundant now.

It's handled by the usual view size assertion, should have removed that
in e43eba68db already.
pull/651/merge
Vladimír Vondruš 1 year ago
parent
commit
bafc0bae9d
  1. 11
      src/Magnum/Test/ImageViewTest.cpp

11
src/Magnum/Test/ImageViewTest.cpp

@ -60,7 +60,6 @@ struct ImageViewTest: TestSuite::Tester {
void constructFromMutable(); void constructFromMutable();
void constructCompressedFromMutable(); void constructCompressedFromMutable();
void constructNullptr();
void constructUnknownImplementationSpecificPixelSize(); void constructUnknownImplementationSpecificPixelSize();
void constructInvalidSize(); void constructInvalidSize();
void constructInvalidCubeMap(); void constructInvalidCubeMap();
@ -116,7 +115,6 @@ ImageViewTest::ImageViewTest() {
&ImageViewTest::constructFromMutable, &ImageViewTest::constructFromMutable,
&ImageViewTest::constructCompressedFromMutable, &ImageViewTest::constructCompressedFromMutable,
&ImageViewTest::constructNullptr,
&ImageViewTest::constructUnknownImplementationSpecificPixelSize, &ImageViewTest::constructUnknownImplementationSpecificPixelSize,
&ImageViewTest::constructInvalidSize, &ImageViewTest::constructInvalidSize,
&ImageViewTest::constructInvalidCubeMap, &ImageViewTest::constructInvalidCubeMap,
@ -657,15 +655,6 @@ void ImageViewTest::constructCompressedFromMutable() {
CORRADE_COMPARE(b.data().size(), 8); CORRADE_COMPARE(b.data().size(), 8);
} }
void ImageViewTest::constructNullptr() {
CORRADE_SKIP_IF_NO_ASSERT();
Containers::String out;
Error redirectError{&out};
ImageView2D{PixelFormat::RGB8Unorm, {1, 3}, nullptr};
CORRADE_COMPARE(out, "ImageView: data too small, got 0 but expected at least 12 bytes\n");
}
void ImageViewTest::constructUnknownImplementationSpecificPixelSize() { void ImageViewTest::constructUnknownImplementationSpecificPixelSize() {
CORRADE_SKIP_IF_NO_ASSERT(); CORRADE_SKIP_IF_NO_ASSERT();

Loading…
Cancel
Save