Skip to content

Commit 6a8425e

Browse files
committed
Added more descriptive test cases.
1 parent cc879bb commit 6a8425e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ test("should append 'rd' for numbers ending with 3, except those ending with 13"
3030
test("should append 'th' for numbers ending with 11, 12, or 13", () => {
3131
expect(getOrdinalNumber(11)).toEqual("11th");
3232
expect(getOrdinalNumber(12)).toEqual("12th");
33+
expect(getOrdinalNumber(13)).toEqual("13th");
34+
expect(getOrdinalNumber(111)).toEqual("111th");
35+
expect(getOrdinalNumber(112)).toEqual("112th");
36+
expect(getOrdinalNumber(113)).toEqual("113th");
3337
});
34-
test("should append 'th' for other numbers", () => {
38+
test("should append 'th' for numbers not ending with 1, 2, or 3", () => {
3539
expect(getOrdinalNumber(4)).toEqual("4th");
3640
expect(getOrdinalNumber(10)).toEqual("10th");
37-
});
41+
});

0 commit comments

Comments
 (0)