tests: Added more tests

This commit is contained in:
WerWolv
2021-09-11 23:13:49 +02:00
parent 254b204d6c
commit 3d15a108af
13 changed files with 351 additions and 21 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include "test_pattern.hpp"
namespace hex::test {
class TestPatternFailingAssert : public TestPattern {
public:
TestPatternFailingAssert() : TestPattern("FailingAssert", Mode::Failing) {
}
~TestPatternFailingAssert() override = default;
[[nodiscard]]
std::string getSourceCode() const override {
return R"(
#define MSG "Error"
std::assert(false, MSG);
)";
}
};
}