Skip to content

Commit 99e55d0

Browse files
committed
fixed a error
1 parent a5cdf92 commit 99e55d0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Sprint-3/2-practice-tdd/get-ordinal-number.test.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,13 @@ test(" should append 'rd' for numberss ending witth 3 except those ending with 1
2323
expect(getOrdinalNumber(23)).toEqual("23rd");
2424
});
2525

26-
// Case 3: numbers ending with 3 (except 13)
27-
test("should append 'rd' for numbers ending with 3, except those ending with 13", () => {
28-
expect(getOrdinalNumber(3)).toEqual("3rd");
29-
expect(getOrdinalNumber(23)).toEqual("23rd");
30-
});
31-
32-
// Case 4: numbers ending with th
26+
// Case 3 numbers ending with th
3327
test("should append 'th' for numbers ending with 4-9 or 0", () => {
3428
expect(getOrdinalNumber(4)).toEqual("4th");
3529
expect(getOrdinalNumber(10)).toEqual("10th");
3630
});
3731

38-
// Case 5: special cases 11,12,13
32+
// Case 4: special cases 11,12,13
3933
test("should append 'th' for numbers ending with 11, 12, 13", () => {
4034
expect(getOrdinalNumber(11)).toEqual("11th");
4135
expect(getOrdinalNumber(12)).toEqual("12th");

0 commit comments

Comments
 (0)