Skip to content

Commit 7d3028f

Browse files
committed
Editing last test
1 parent c2a674b commit 7d3028f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ test("append 'rd' to numbers ending in 3, except those ending in 13", () => {
2222
expect(getOrdinalNumber(133)).toEqual("133rd");
2323
});
2424

25-
test("should return 'th' for the rest numbers", () => {
25+
test("should return 'th' for numbers where the last digit is not 1, 2, or 3, excluding special cases 11–13", () => {
2626
expect(getOrdinalNumber(10)).toEqual("10th");
2727
expect(getOrdinalNumber(11)).toEqual("11th");
28-
expect(getOrdinalNumber(34)).toEqual("34th");
28+
expect(getOrdinalNumber(13)).toEqual("13th");
2929
expect(getOrdinalNumber(134)).toEqual("134th");
3030
});

0 commit comments

Comments
 (0)