1
0
mirror of synced 2025-02-06 14:14:22 +01:00
ImHex/tests/include/test_patterns/test_pattern_succeeding_assert.hpp

29 lines
624 B
C++
Raw Normal View History

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