From 64bc32984b51d7091691f0a92b18b2c87d21b448 Mon Sep 17 00:00:00 2001 From: Gary Deer Date: Mon, 16 Oct 2017 22:50:13 -0500 Subject: [PATCH] fixed requirements for triangle assignment problem stated that a valid triangle was if the sum of two sides was greater than or equal two the third side which is incorrect, the sum of two sides must be greater than the third. even the test cases check this logic by saying (triangle-type 1 2 1) is illogical instead of isosceles --- src/exercism_io/core.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exercism_io/core.clj b/src/exercism_io/core.clj index f9f1a5c..4974709 100644 --- a/src/exercism_io/core.clj +++ b/src/exercism_io/core.clj @@ -507,7 +507,7 @@ (p "An " (italic "isosceles") " triangle has at least two sides the same length. (It is sometimes specified as having exactly two sides the same length, but for the purposes of this exercise we'll say at least two.)") (p "A " (italic "scalene") " triangle has all sides of different lengths.") - (p "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. See " (link "Triangle Inequality" "https://en.wikipedia.org/wiki/Triangle_inequality") "."))) + (p "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 the length of the third side. See " (link "Triangle Inequality" "https://en.wikipedia.org/wiki/Triangle_inequality") "."))) (instruction 'ins-triangle (run-pre-tests? true) @@ -1102,4 +1102,4 @@ (= a b c) :equilateral (not (valid? a b c)) :illogical (isosceles? a b c) :isosceles - :else :scalene))) \ No newline at end of file + :else :scalene)))