tests: Improved pattern unit tests

This commit is contained in:
WerWolv
2021-10-20 11:06:24 +02:00
parent 9ccfadfb54
commit d6f9ec3f8f
4 changed files with 8 additions and 9 deletions

View File

@@ -55,11 +55,11 @@ namespace hex::pl {
void setHardError(const EvaluateError &error) { this->m_lastHardError = error; }
[[nodiscard]]
const LogConsole::EvaluateError& getLastHardError() { return this->m_lastHardError; };
const std::optional<EvaluateError>& getLastHardError() { return this->m_lastHardError; };
private:
std::vector<std::pair<Level, std::string>> m_consoleLog;
EvaluateError m_lastHardError;
std::optional<EvaluateError> m_lastHardError;
};
}