Skip to content

Conversation

petertseng
Copy link
Member

As reported in #207, the triangle tests can be solved by a trivial empty
implementation that simply sets all four triangle types equal to one
another. We should prevent false positives, and we can do so by checking
that Equ != Iso, etc.

I verified that 1) the trivial solution fails the new test, and 2) the
example solution passes the test.

Fixes #207

As reported in #207, the triangle tests can be solved by a trivial empty
implementation that simply sets all four triangle types equal to one
another. We should prevent false positives, and we can do so by checking
that Equ != Iso, etc.

I verified that 1) the trivial solution fails the new test, and 2) the
example solution passes the test.

Fixes #207
@kytrinyx
Copy link
Member

kytrinyx commented Dec 7, 2015

This looks good to me.

petertseng added a commit that referenced this pull request Dec 7, 2015
triangle: Ensure no pair of triangle types are equal
@petertseng petertseng merged commit 51512c7 into exercism:master Dec 7, 2015
@petertseng petertseng deleted the triangle branch December 9, 2015 10:22
@petertseng petertseng restored the triangle branch January 20, 2016 05:40
@petertseng petertseng deleted the triangle branch January 30, 2016 08:36
@petertseng petertseng mentioned this pull request Sep 5, 2016
5 tasks
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

Successfully merging this pull request may close these issues.

2 participants