We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc85d7 commit 938dbcfCopy full SHA for 938dbcf
1 file changed
Sprint-3/2-practice-tdd/get-ordinal-number.test.js
@@ -32,8 +32,9 @@ test("should return '3rd' for 3", () => {
32
// If the last digit of number is not 1, 2, 3
33
// and the last two digits are not between 11 and 13
34
// Then the function should return the number with "th" suffix
35
+// otherwise, return the number with the appropriate suffix
36
-test("should return '44th' for 44", () => {
37
+test("should return '44th' for 44; '131st' for 131 etc.", () => {
38
expect(getOrdinalNumber(44)).toEqual("44th");
39
expect(getOrdinalNumber(9)).toEqual("9th");
40
expect(getOrdinalNumber(20)).toEqual("20th");
0 commit comments