Skip to content

Commit

Permalink
Move exceptions to types
Browse files Browse the repository at this point in the history
  • Loading branch information
cegonse committed Aug 24, 2024
1 parent ec01c54 commit 719e106
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ unsigned int random_seed;

namespace cest
{
class AssertionError : public std::exception
{
};
class ForcedPassError : public std::exception
{
};

std::string describeFunction(std::string test_name, std::function<void()> test)
{
test();
Expand Down
7 changes: 7 additions & 0 deletions src/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ namespace cest
std::vector<cest::TestCase *> test_cases;
std::string test_suite_name;
};

class AssertionError : public std::exception
{
};
class ForcedPassError : public std::exception
{
};
}

0 comments on commit 719e106

Please sign in to comment.