Skip to content

Commit 514a9da

Browse files
Changed description for the append
1 parent daec403 commit 514a9da

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
@@ -41,10 +41,10 @@ test("should append 'rd' for numbers ending with 3", () => {
4141
});
4242

4343
// Case 4: The remaining numbers
44-
// For numbers that don't end in 1 (not11), 2 and 3
44+
// For numbers ending in 0, 4, 5, 6, 7, 8, 9, 11, 12, 13
4545
// the function should return a string by appending "th" to the number.
4646

47-
test("should append 'th' if number is 11, 12 or 13 or does not end in 1, 2 or 3",() => {
47+
test("should append 'th' if number is ending in 0, 4, 5,6, 7, 8, 9, 10, 11, 12 or 13", () => {
4848
expect(getOrdinalNumber(20)).toEqual("20th");
4949
expect(getOrdinalNumber(11)).toEqual("11th");
5050
expect(getOrdinalNumber(99)).toEqual("99th");

0 commit comments

Comments
 (0)