Skip to content

Commit 3d45811

Browse files
committed
simplify descriptions and add test for numbers ending with 11
1 parent ce9617e commit 3d45811

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ test("should append 'rd' for numbers ending with 3, except those ending with 13"
3737
expect(getOrdinalNumber(23)).toEqual("23rd");
3838
expect(getOrdinalNumber(133)).toEqual("133rd");
3939
});
40-
test("should append 'th' for numbers ending with 3 that are also ending with 13", () => {
40+
test("should append 'th' for numbers ending with 11, 12, or 13", () => {
41+
expect(getOrdinalNumber(11)).toEqual("11th");
42+
expect(getOrdinalNumber(12)).toEqual("12th");
4143
expect(getOrdinalNumber(13)).toEqual("13th");
44+
expect(getOrdinalNumber(111)).toEqual("111th");
45+
expect(getOrdinalNumber(112)).toEqual("112th");
4246
expect(getOrdinalNumber(113)).toEqual("113th");
4347
});
4448

0 commit comments

Comments
 (0)