From 41ec61d42c88036f67dfa10d167332184f5da66c Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 11 Aug 2025 17:37:54 -0700 Subject: [PATCH 1/2] Triangle: explicitly exclude degenerate triangles --- exercises/triangle/description.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exercises/triangle/description.md b/exercises/triangle/description.md index e3b67d17d5..34d1db0164 100644 --- a/exercises/triangle/description.md +++ b/exercises/triangle/description.md @@ -13,6 +13,11 @@ A _scalene_ triangle has all sides of different lengths. For a shape to be a triangle at all, all sides have to be of length > 0, and the sum of the lengths of any two sides must be greater than or equal to the length of the third side. +~~~~exercism/note +We opted to not include degenerate triangles (triangles that violate these rules) in the tests to keep things simpler. +You may handle those situations if you wish to do so, or safely ignore them. +~~~~ + In equations: Let `a`, `b`, and `c` be sides of the triangle. From c24ec960db6584b4ef32ae121cb67f306950f05e Mon Sep 17 00:00:00 2001 From: Jeremy Walker Date: Tue, 12 Aug 2025 10:39:49 +0100 Subject: [PATCH 2/2] Update exercises/triangle/description.md --- exercises/triangle/description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/triangle/description.md b/exercises/triangle/description.md index 34d1db0164..9286b69f01 100644 --- a/exercises/triangle/description.md +++ b/exercises/triangle/description.md @@ -14,7 +14,7 @@ A _scalene_ triangle has all sides of different lengths. For a shape to be a triangle at all, all sides have to be of length > 0, and the sum of the lengths of any two sides must be greater than or equal to the length of the third side. ~~~~exercism/note -We opted to not include degenerate triangles (triangles that violate these rules) in the tests to keep things simpler. +We opted to not include tests for degenerate triangles (triangles that violate these rules) to keep things simpler. You may handle those situations if you wish to do so, or safely ignore them. ~~~~