-
-
Notifications
You must be signed in to change notification settings - Fork 193
ZA | ITP-May | Praise Magidi | Sprint-3 | Module-Structuring-and-Testing-Data #592
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
base: to-be-deleted-coursework/sprint-3
Are you sure you want to change the base?
ZA | ITP-May | Praise Magidi | Sprint-3 | Module-Structuring-and-Testing-Data #592
Conversation
a5eef2b
to
bb018c0
Compare
@@ -43,14 +47,19 @@ assertEquals(acute, "Acute angle"); | |||
// When the angle is greater than 90 degrees and less than 180 degrees, | |||
// Then the function should return "Obtuse angle" | |||
const obtuse = getAngleType(120); | |||
assertEquals(obtuse, "Acute angle"); |
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.
Should say Obtuse not acute
// ====> write your test here, and then add a line to pass the test in the function above | ||
const reflex = getAngleType(250); |
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.
245 not 250
@@ -9,6 +9,10 @@ | |||
|
|||
function getAngleType(angle) { | |||
if (angle === 90) return "Right angle"; | |||
if (angle < 90) return "Acute angle"; |
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.
What if the angles are less than 0?
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.