Skip to content
Snippets Groups Projects
Commit 028de51d authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Add tests for RuntimeError

parent af0a21f7
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -70,6 +70,7 @@ add_executable (unit_tests ...@@ -70,6 +70,7 @@ add_executable (unit_tests
test_PCG.cpp test_PCG.cpp
test_PugsAssert.cpp test_PugsAssert.cpp
test_RevisionInfo.cpp test_RevisionInfo.cpp
test_RuntimeError.cpp
test_SparseMatrixDescriptor.cpp test_SparseMatrixDescriptor.cpp
test_SymbolTable.cpp test_SymbolTable.cpp
test_TinyMatrix.cpp test_TinyMatrix.cpp
......
#include <catch2/catch.hpp>
#include <language/utils/RuntimeError.hpp>
// clazy:excludeall=non-pod-global-static
TEST_CASE("RuntimeError", "[language]")
{
RuntimeError e{"error message"};
REQUIRE(e.message() == "error message");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment