Nevermind, needed to actually throw an exception object.

This commit is contained in:
2024-06-17 15:14:07 -04:00
parent 22175b25a9
commit bec4bd93f8
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ namespace jtest {
bool check(bool condition) {
if (!condition)
throw;
throw std::runtime_error("Test check failed!!");
return condition;
}

View File

@@ -22,5 +22,6 @@ int main()
jtest::check(2+2 == 5);
});
// Doesn't actually do anything yet
jtest::run_tests();
}