Skip to content

Commit 4386c93

Browse files
committed
more test is done
1 parent 87552c8 commit 4386c93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ test("should return '11th' for 11", () => {
5454
expect(getOrdinalNumber(11)).toEqual("11th");
5555
});
5656

57+
// Case 20: Identify the ordinal number for 20
58+
// When the number is 20,
59+
// Then the function should return "20rd"
60+
test("should return '20th' for 20", () => {
61+
expect(getOrdinalNumber(20)).toEqual("20th");
62+
});
63+
5764
// Case 23: Identify the ordinal number for 23
5865
// When the number is 23,
5966
// Then the function should return "33rd"

0 commit comments

Comments
 (0)