Skip to content

Commit 64d94f8

Browse files
Adding a few other instances to cover the requirements correctly for test case5
1 parent c87f2ab commit 64d94f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ test("should append 'th' for numbers ending with 0 or 4-9", () => {
4444
// Case 5: Special cases 11, 12, 13, 14, (always "th")
4545
test("should append 'th' for numbers ending with 11, 12, or 13", () => {
4646
expect(getOrdinalNumber(11)).toEqual("11th");
47+
expect(getOrdinalNumber(13)).toEqual("13th");
4748
expect(getOrdinalNumber(12)).toEqual("12th");
4849
expect(getOrdinalNumber(13)).toEqual("13th");
50+
expect(getOrdinalNumber(14)).toEqual("14th");
4951
});

0 commit comments

Comments
 (0)