Skip to content

Commit d684300

Browse files
author
Arthur
committed
Revert "sprint3/implement task-2"
This reverts commit 5ef4721.
1 parent dd83352 commit d684300

3 files changed

Lines changed: 4 additions & 66 deletions

File tree

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Implement a function getAngleType
2+
//
23
// When given an angle in degrees, it should return a string indicating the type of angle:
34
// - "Acute angle" for angles greater than 0° and less than 90°
45
// - "Right angle" for exactly 90°
@@ -14,24 +15,7 @@
1415
// execute the code to ensure all tests pass.
1516

1617
function getAngleType(angle) {
17-
if (angle <= 0 || angle >= 360) {
18-
return "Invalid angle";
19-
}
20-
else if(angle === 90){
21-
return "Right angle";
22-
}
23-
else if(angle >90 && angle < 180){
24-
return "Obtuse angle";
25-
}
26-
else if(angle === 180){
27-
return "Straight angle";
28-
}
29-
else if(angle >180 && angle<360){
30-
return "Reflex angle";
31-
}
32-
else if(angle>0 && angle < 90){
33-
return "Acute angle";
34-
}
18+
// TODO: Implement this function
3519
}
3620

3721
// The line below allows us to load the getAngleType function into tests in other files.
@@ -47,9 +31,7 @@ function assertEquals(actualOutput, targetOutput) {
4731
);
4832
}
4933

50-
51-
5234
// TODO: Write tests to cover all cases, including boundary and invalid cases.
5335
// Example: Identify Right Angles
5436
const right = getAngleType(90);
55-
assertEquals(getAngleType(90), "Right angle");
37+
assertEquals(right, "Right angle");

Sprint-3/1-implement-and-rewrite-tests/implement/2-is-proper-fraction.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
// execute the code to ensure all tests pass.
1212

1313
function isProperFraction(numerator, denominator) {
14-
15-
return numerator< denominator ;
16-
14+
// TODO: Implement this function
1715
}
1816

1917
// The line below allows us to load the isProperFraction function into tests in other files.

Sprint-3/package.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)