1
0
mirror of synced 2024-12-04 12:07:57 +01:00
ImHex/tests/include/test_patterns/test_pattern_succeeding_assert.hpp
2021-09-11 23:13:49 +02:00

29 lines
624 B
C++

#pragma once
#include "test_pattern.hpp"
namespace hex::test {
class TestPatternSucceedingAssert : public TestPattern {
public:
TestPatternSucceedingAssert() : TestPattern("SucceedingAssert") {
}
~TestPatternSucceedingAssert() override = default;
[[nodiscard]]
std::string getSourceCode() const override {
return R"(
#define MSG "Error"
std::assert(true, MSG);
std::assert(100 == 100, MSG);
std::assert(50 < 100, MSG);
std::assert(1, MSG);
)";
}
};
}