mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
tests: Added more tests
This commit is contained in:
26
tests/include/test_patterns/test_pattern_failing_assert.hpp
Normal file
26
tests/include/test_patterns/test_pattern_failing_assert.hpp
Normal 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);
|
||||
|
||||
)";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user