Skip to content

Commit 938dbcf

Browse files
committed
Added 5-th case, explanation and solution for them to get-ordinal-number
1 parent afc85d7 commit 938dbcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ test("should return '3rd' for 3", () => {
3232
// If the last digit of number is not 1, 2, 3
3333
// and the last two digits are not between 11 and 13
3434
// Then the function should return the number with "th" suffix
35+
// otherwise, return the number with the appropriate suffix
3536

36-
test("should return '44th' for 44", () => {
37+
test("should return '44th' for 44; '131st' for 131 etc.", () => {
3738
expect(getOrdinalNumber(44)).toEqual("44th");
3839
expect(getOrdinalNumber(9)).toEqual("9th");
3940
expect(getOrdinalNumber(20)).toEqual("20th");

0 commit comments

Comments
 (0)