Skip to content

Commit 5497cfe

Browse files
author
Pretty Taruvinga
committed
test: clarify ordinal 'th' test case description
1 parent 37b2b72 commit 5497cfe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ test("should append 'th' for numbers ending with 11, 12, or 13", () => {
4141
expect(getOrdinalNumber(13)).toEqual("13th");
4242
});
4343

44-
// Case 4: All other numbers
45-
// When the number does not end with 1, 2, or 3 (or ends with 11, 12, or 13),
46-
// Then the function should return a string by appending "th" to the number.
47-
test("should append 'th' for all other numbers", () => {
44+
// Case 4: Numbers ending with 0 or 4–9
45+
// When the number ends with 0 or digits 4–9,
46+
// Then the function should return a string by appending "th".
47+
test("should append 'th' for numbers ending with 0 or 4–9", () => {
4848
expect(getOrdinalNumber(4)).toEqual("4th");
4949
expect(getOrdinalNumber(10)).toEqual("10th");
5050
expect(getOrdinalNumber(14)).toEqual("14th");

0 commit comments

Comments
 (0)