Skip to content

Commit 837121a

Browse files
update exercies
1 parent 562e2d1 commit 837121a

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎implement-and-rewrite-tests/implement-tests-with-node-test/1-get-angle-type.test.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import test from "node:test";
33

44
import { getAngleType } from "../implement/1-get-angle-type.js";
55

6-
76
test("Classifies right angles", () => {
87
const right = getAngleType(90);
98
assert.equal(right, "Right angle");
@@ -32,7 +31,6 @@ test("Classifies invalid angles", () => {
3231
const invalid = getAngleType(-10);
3332
assert.equal(invalid, "Invalid angle");
3433
});
35-
3634
test("Classifies Zero angle", () => {
3735
const zero = getAngleType(0);
3836
assert.equal(zero, "Zero angle");
@@ -41,4 +39,4 @@ test("Classifies Zero angle", () => {
4139
test("Classifies Complete angle", () => {
4240
const complete = getAngleType(360);
4341
assert.equal(complete, "Complete angle");
44-
});
42+
});

‎implement-and-rewrite-tests/implement-tests-with-node-test/2-is-proper-fraction.test.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test("zero numerator should retrun true", () => {
2121
assert.equal(isProperFraction(0, 5), true);
2222
});
2323

24-
test("numerator bigger then denumnator should return false", () => {
24+
test("numerator bigger then denuminator should return false", () => {
2525
assert.equal(isProperFraction(20, 15), false);
2626
});
2727
test("zero denumator should return false", () => {
@@ -32,7 +32,7 @@ test("equal numerator and denumerator should return false", () => {
3232
assert.equal(isProperFraction(3, 3), false);
3333
});
3434

35-
test("negative numerator and positive denumerator should return true ", () => {
35+
test("negative numerator smaller then a positive denumerator should return true ", () => {
3636
assert.equal(isProperFraction(-5, 16), true);
3737
});
3838

@@ -43,5 +43,11 @@ test("positive numerator and negative denumerator should return false", () => {
4343
test("negative numerator smaller then a negative denumerator should return false", () => {
4444
assert.equal(isProperFraction(-50 , -16), false);
4545
});
46+
test("negative numerator bigger then a negative denumerator should return true", () => {
47+
assert.equal(isProperFraction(-16, -50), true);
48+
});
49+
50+
51+
4652

4753

0 commit comments

Comments
 (0)