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

triangle: Allow equilateral triangles to also be isosceles #272

Merged
merged 1 commit into from
Apr 5, 2017
Merged

triangle: Allow equilateral triangles to also be isosceles #272

merged 1 commit into from
Apr 5, 2017

Conversation

mkantor
Copy link
Contributor

@mkantor mkantor commented Apr 5, 2017

The triangle problem description says the following:

An 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.)

However, previously the tests for this exercise only allowed isosceles triangles with exactly two sides of the same length.

Removing the expectation that equilateral triangles must return false for .is_isosceles() allows students the freedom to decide which definition of "isosceles" they want to implement.

The triangle problem description says the following:

> An 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.)

However, previously the tests for this exercise only allowed isosceles
triangles with exactly two sides of the same length.

Removing the expectation that equilateral triangles must return false
for `.is_isosceles()` allows students the freedom to decide which
definition of "isosceles" they want to implement.
Copy link
Contributor

@ijanos ijanos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Thank you!

@petertseng
Copy link
Member

Closes #228 (well, it was already closed as of this writing, but the recommended action had not been taken) and supersedes #206

@IanWhitney IanWhitney merged commit 5776809 into exercism:master Apr 5, 2017
@IanWhitney
Copy link
Contributor

Thanks!

@mkantor mkantor deleted the triangle-problem-isosceles-bug branch April 6, 2017 01:30
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.

4 participants