29 lines
624 B
C++
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);
|
|
|
|
)";
|
|
}
|
|
|
|
};
|
|
|
|
} |