Skip to content

Commit c6c5000

Browse files
Complete ordinal number tests
1 parent 87f874b commit c6c5000

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎practice-tdd/get-ordinal-number.test.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ test("should append 'th' for other numbers", () => {
3636
expect(getOrdinalNumber(24)).toEqual("24th");
3737
expect(getOrdinalNumber(114)).toEqual("114th");
3838
});
39+
40+
test("should append 'th' for numbers ending with 11, 12, 13", () => {
41+
expect(getOrdinalNumber(11)).toEqual("11th");
42+
expect(getOrdinalNumber(12)).toEqual("12th");
43+
expect(getOrdinalNumber(13)).toEqual("13th");
44+
});

0 commit comments

Comments
 (0)