Skip to content

Commit 83528bc

Browse files
authored
remove 'TODO' comments
Implemented the getAngleType function to classify angles.
1 parent 41b0336 commit 83528bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sprint-3/1-implement-and-rewrite-tests/implement/1-get-angle-type.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// execute the code to ensure all tests pass.
1616

1717
function getAngleType(angle) {
18-
// TODO: Implement this function
18+
1919
// first converting conditions into variables
2020
const acuteAngle = (angle > 0 && angle < 90);
2121
const rightAngle = (angle === 90);
@@ -57,7 +57,7 @@ function assertEquals(actualOutput, targetOutput) {
5757
);
5858
}
5959

60-
// TODO: Write tests to cover all cases, including boundary and invalid cases.
60+
6161
// Example: Identify Right Angles
6262
const right = getAngleType(90);
6363
assertEquals(right, "Right angle");
@@ -81,4 +81,4 @@ const invalidAngle2 = getAngleType(0);
8181
assertEquals(invalidAngle2, "Invalid angle");
8282

8383
const invalidAngle3 = getAngleType(-1);
84-
assertEquals(invalidAngle3, "Invalid angle");
84+
assertEquals(invalidAngle3, "Invalid angle");

0 commit comments

Comments
 (0)