Skip to content

Commit 1efb9a9

Browse files
clarified
1 parent 514a9da commit 1efb9a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const getOrdinalNumber = require("./get-ordinal-number");
1414
// When the number ends with 1, except those ending with 11,
1515
// Then the function should return a string by appending "st" to the number.
1616

17-
test("should append 'st' for numbers ending with 1, except those ending with 11", () => {
17+
test("should append 'st' for numbers ending with 1, except 11", () => {
1818
expect(getOrdinalNumber(1)).toEqual("1st");
1919
expect(getOrdinalNumber(21)).toEqual("21st");
2020
expect(getOrdinalNumber(131)).toEqual("131st");
@@ -24,7 +24,7 @@ test("should append 'st' for numbers ending with 1, except those ending with 11"
2424
// When the number ends with 2,
2525
// Then the function should return a string by appending "nd" to the number.
2626

27-
test("should append 'nd' for numbers ending with 2", () => {
27+
test("should append 'nd' for numbers ending with 2 except 12", () => {
2828
expect(getOrdinalNumber(2)).toEqual("2nd");
2929
expect(getOrdinalNumber(32)).toEqual("32nd");
3030
expect(getOrdinalNumber(252)).toEqual("252nd");
@@ -34,7 +34,7 @@ test("should append 'nd' for numbers ending with 2", () => {
3434
// When the number ends with 3,
3535
// Then the function should return a string by appending "rd" to the number.
3636

37-
test("should append 'rd' for numbers ending with 3", () => {
37+
test("should append 'rd' for numbers ending with 3 except 13", () => {
3838
expect(getOrdinalNumber(3)).toEqual("3rd");
3939
expect(getOrdinalNumber(33)).toEqual("33rd");
4040
expect(getOrdinalNumber(133)).toEqual("133rd");

0 commit comments

Comments
 (0)