Skip to content

Commit 7604204

Browse files
updated description
1 parent 01e4e00 commit 7604204

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ test("should append 'rd' for numbers ending with 3", () => {
4141
});
4242

4343
// Case 4: The remaining numbers
44-
// When the number ends with 1, except those ending with 11
45-
// For all other numbers
46-
// Then the function should return a string by appending "th" to the number.
44+
// For numbers that don't end in 1 (not11), 2 and 3
45+
// the function should return a string by appending "th" to the number.
4746

48-
test("should append 'th' for remaining numbers", () => {
47+
test("should append 'th' if nunber is 11 or does not end in 1, 2 or 3 ", () => {
4948
expect(getOrdinalNumber(20)).toEqual("20th");
5049
expect(getOrdinalNumber(11)).toEqual("11th");
5150
expect(getOrdinalNumber(99)).toEqual("99th");

0 commit comments

Comments
 (0)