|
|
|
|
@ -53,6 +53,7 @@ struct AtlasTest: TestSuite::Tester {
|
|
|
|
|
|
|
|
|
|
void landfillConstruct(); |
|
|
|
|
void landfillConstructInvalidSize(); |
|
|
|
|
void landfillConstructNoCreate(); |
|
|
|
|
void landfillConstructCopy(); |
|
|
|
|
void landfillConstructMove(); |
|
|
|
|
|
|
|
|
|
@ -504,6 +505,7 @@ AtlasTest::AtlasTest() {
|
|
|
|
|
|
|
|
|
|
&AtlasTest::landfillConstruct, |
|
|
|
|
&AtlasTest::landfillConstructInvalidSize, |
|
|
|
|
&AtlasTest::landfillConstructNoCreate, |
|
|
|
|
&AtlasTest::landfillConstructCopy, |
|
|
|
|
&AtlasTest::landfillConstructMove, |
|
|
|
|
|
|
|
|
|
@ -614,6 +616,16 @@ void AtlasTest::landfillConstructInvalidSize() {
|
|
|
|
|
TestSuite::Compare::String); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AtlasTest::landfillConstructNoCreate() { |
|
|
|
|
AtlasLandfill a{NoCreate}; |
|
|
|
|
|
|
|
|
|
/* Shouldn't crash */ |
|
|
|
|
CORRADE_VERIFY(true); |
|
|
|
|
|
|
|
|
|
/* Implicit construction is not allowed */ |
|
|
|
|
CORRADE_VERIFY(!std::is_convertible<NoCreateT, AtlasLandfill>::value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void AtlasTest::landfillConstructCopy() { |
|
|
|
|
CORRADE_VERIFY(!std::is_copy_constructible<AtlasLandfill>{}); |
|
|
|
|
CORRADE_VERIFY(!std::is_copy_assignable<AtlasLandfill>{}); |
|
|
|
|
|