Skip to content

Commit b46a6d3

Browse files
committed
Add additional test to verify getAngleType correctly handles float input (90.0) for right angle
1 parent 121ebe4 commit b46a6d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const getAngleType = require("../implement/1-get-angle-type");
44

55
test("should identify right angle (90°)", () => {
66
expect(getAngleType(90)).toEqual("Right angle");
7+
expect(getAngleType(90.0)).toEqual("Right angle");
78
});
89

910
// REPLACE the comments with the tests

0 commit comments

Comments
 (0)