Skip to content

Commit ccf3a1c

Browse files
committed
changes made
1 parent 4b42ede commit ccf3a1c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function assertEquals(actualOutput, targetOutput) {
5151
`Expected ${actualOutput} to equal ${targetOutput}`
5252
);
5353
}
54-
assertEquals(getAngleType(320), "Acute angle");
54+
assertEquals(getAngleType(320), "Reflex angle");
5555
// TODO: Write tests to cover all cases, including boundary and invalid cases.
5656
// Example: Identify Right Angles
5757
const right = getAngleType(90);

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
// execute the code to ensure all tests pass.
1212

1313
function isProperFraction(numerator, denominator) {
14-
if (numerator >= denominator) {
15-
return false;
16-
} else {
17-
return true;
18-
}
14+
15+
let fraction = (numerator >= denominator ) ? false : true;
16+
return fraction
17+
1918
}
2019

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

0 commit comments

Comments
 (0)