We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 749ac65 commit 0f5e8bcCopy full SHA for 0f5e8bc
exercises/practice/triangle/triangle_test.cpp
@@ -6,6 +6,12 @@
6
#endif
7
#include <stdexcept>
8
9
+// improves error messages with triangle flavor enum text instead of integers:
10
+CATCH_REGISTER_ENUM(triangle::flavor,
11
+ triangle::flavor::equilateral,
12
+ triangle::flavor::isosceles,
13
+ triangle::flavor::scalene)
14
+
15
TEST_CASE("equilateral_triangles_have_equal_sides")
16
{
17
REQUIRE(triangle::flavor::equilateral == triangle::kind(2, 2, 2));
0 commit comments