-
-
Notifications
You must be signed in to change notification settings - Fork 365
423 triangle generator #458
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
423 triangle generator #458
Conversation
@@ -9,7 +9,22 @@ public enum TriangleKind | |||
|
|||
public static class Triangle | |||
{ | |||
public static TriangleKind Kind(decimal side1, decimal side2, decimal side3) | |||
public static bool IsScalene(double side1, double side2, double side3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to be consistent, we should keep the types used here and in Example.cs
the same.
Just one small nit, it already looks great! |
@ErikSchierboom fixed! However, it doesn't seem to like the double as parameters. It complained when I ran it locally but I think the actual test is different, so I should probably change back to decimal. Is there way to run tests locally or can I just run the |
@bmeverett You should use the |
Merged. Great work @bmeverett! Thanks. 🎉 |
Thanks @bmeverett for taking the time to do this, much appreciated! I know I'm late here, but I have a couple of comments (@ErikSchierboom feel free to chime in here too since you reviewed this originally):
|
Two excellent points @robkeim. The first issue was one that I felt could easily be corrected later, the second one I missed. |
Thanks @ErikSchierboom for the input. @bmeverett would you like to make a new PR to fix these issues? If not, no worries I can do it. |
@robkeim @ErikSchierboom I can take a look at it. Do you want the Kind method removed from |
@bmeverett It's fine in |
Changes look good, thanks @bmeverett 🎉 |
Adds the triangle test generator. I modified the class to better take into account the canonical data as suggested by @ErikSchierboom here
Closes #423