1
0
mirror of synced 2025-01-23 15:12:12 +01:00
ImHex/tests/include/test_patterns/test_pattern_failing_assert.hpp

26 lines
501 B
C++
Raw Normal View History

2021-09-11 23:13:49 +02:00
#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);
)";
}
};
}