Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test 4 has two tests expecting wrong value #2

Open
KingCode opened this issue Nov 9, 2017 · 0 comments
Open

Test 4 has two tests expecting wrong value #2

KingCode opened this issue Nov 9, 2017 · 0 comments

Comments

@KingCode
Copy link

KingCode commented Nov 9, 2017

"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."

Then the two following tests have the wrong expected value, which should be :isosceles instead

(= :illogical (triangle-type 1 2 1)) ;; 1 + 1 >= 2, 2 + 1 >= 1 therefore a valid triangle
(= :illogical (triangle-type 2 4 2));; 2 + 2 >= 4, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant