scsl/Test.h

32 lines
395 B
C
Raw Normal View History

2023-10-10 02:59:21 +00:00
//
// Created by kyle on 2023-10-09.
//
#include <string>
#ifndef KLIB_TEST_H
#define KLIB_TEST_H
namespace klib {
void
TestAssert(bool condition, std::string message);
class AssertionFailed : public std::exception {
public:
explicit AssertionFailed(std::string message);
char *what() const noexcept override;
public:
std::string msg;
};
} // namespace klib
#endif //KLIB_TEST_H