aboutsummaryrefslogtreecommitdiffstats
path: root/tests/generic_error.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/generic_error.cc')
-rw-r--r--tests/generic_error.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/generic_error.cc b/tests/generic_error.cc
deleted file mode 100644
index b213af9..0000000
--- a/tests/generic_error.cc
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * This source code is released into the public domain.
- */
-
-#include <catch2/catch_test_macros.hpp>
-
-import nihil;
-
-using namespace std::literals;
-
-TEST_CASE("generic_error: basic", "[generic_error]") {
- try {
- throw nihil::generic_error("{} + {} = {}", 1, 2, 3);
- } catch (nihil::generic_error const &exc) {
- REQUIRE(exc.what() == "1 + 2 = 3"s);
- }
-}