Skip to content

Commit 8132b8c

Browse files
authored
Update test case for ordinal number suffixes
1 parent 40e4444 commit 8132b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test("should append '3rd' for numbers ending with 3", () => {
3232
expect(getOrdinalNumber(153)).toEqual("153rd");
3333
});
3434
// Case 4: All other numbers → add th → (4th, 6th, 20th, 100th)
35-
test("should append 'th' for numbers ending with 4", () => {
35+
test("should append 'th' for numbers ending with 4,5,6,7,8,9 and 0", () => {
3636
expect(getOrdinalNumber(4)).toEqual("4th");
3737
expect(getOrdinalNumber(20)).toEqual("20th");
3838
expect(getOrdinalNumber(100)).toEqual("100th");

0 commit comments

Comments
 (0)