Skip to content

Commit 689301a

Browse files
IsaacGiHiD
andauthored
Triangle: explicitly exclude degenerate triangles (#2579)
* Triangle: explicitly exclude degenerate triangles * Update exercises/triangle/description.md --------- Co-authored-by: Jeremy Walker <[email protected]>
1 parent c9b3020 commit 689301a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exercises/triangle/description.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ A _scalene_ triangle has all sides of different lengths.
1313

1414
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.
1515

16+
~~~~exercism/note
17+
We opted to not include tests for degenerate triangles (triangles that violate these rules) to keep things simpler.
18+
You may handle those situations if you wish to do so, or safely ignore them.
19+
~~~~
20+
1621
In equations:
1722

1823
Let `a`, `b`, and `c` be sides of the triangle.

0 commit comments

Comments
 (0)