Skip to content

Commit 57792ce

Browse files
committed
Fix test descriptions with copy errors
1 parent dee4647 commit 57792ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎practice-tdd/get-ordinal-number.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ test("should append 'th' for numbers ending with 12", () => {
4141
});
4242

4343
// Case 5: Numbers ending with 3 (but not 13). Should append "rd" to the number
44-
test("should append 'nd' for numbers ending with 2, except those ending with 12", () => {
44+
test("should append 'rd' for numbers ending with 3, except those ending with 13", () => {
4545
expect(getOrdinalNumber(3)).toEqual("3rd");
4646
expect(getOrdinalNumber(23)).toEqual("23rd");
4747
expect(getOrdinalNumber(133)).toEqual("133rd");
4848
});
4949

5050
// Case 6: Numbers ending with 13. Should append "th" to the number
51-
test("should append 'th' for numbers ending with 12", () => {
51+
test("should append 'th' for numbers ending with 13", () => {
5252
expect(getOrdinalNumber(13)).toEqual("13th");
5353
expect(getOrdinalNumber(113)).toEqual("113th");
5454
expect(getOrdinalNumber(4213)).toEqual("4213th");

0 commit comments

Comments
 (0)