Skip to content

Commit 19a965c

Browse files
committed
Ordinal number solution
1 parent 3372770 commit 19a965c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,11 @@ test("should append 'st' for numbers ending with 1, except those ending with 11"
1818
expect(getOrdinalNumber(21)).toEqual("21st");
1919
expect(getOrdinalNumber(131)).toEqual("131st");
2020
});
21+
22+
test("should append 'th' for numbers ending with 11", () => {
23+
expect(getOrdinalNumber(11)).toEqual("11th");
24+
expect(getOrdinalNumber(11)).toEqual("11th");
25+
expect(getOrdinalNumber(700011)).toEqual("700011th");
26+
});
27+
28+
test();

0 commit comments

Comments
 (0)