Skip to content

Commit ebe2c5d

Browse files
updated description of appending th
1 parent f55e9b5 commit ebe2c5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sprint-3/2-practice-tdd/count.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test("should count multiple occurrences of a character", () => {
2424
// Then it should return 0, indicating that no occurrences of `char` were found.
2525

2626
test("should count multiple occurrences of a character", () => {
27-
expect(countChar("aaaaa", "b")).toEqual(5);
27+
expect(countChar("aaaaa", "a")).toEqual(5);
2828
expect(countChar("blind", "a")).toEqual(0);
2929
expect(countChar("blood", "o")).toEqual(2);
3030
expect(countChar("bbbrf", "b")).toEqual(3);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test("should append 'rd' for numbers ending with 3", () => {
4444
// For numbers that don't end in 1 (not11), 2 and 3
4545
// the function should return a string by appending "th" to the number.
4646

47-
test("should append 'th' if nunber is 11 or does not end in 1, 2 or 3 ", () => {
47+
test("should append 'th' if number is 11, 12 or 13 or does not end in 1, 2 or 3",() => {
4848
expect(getOrdinalNumber(20)).toEqual("20th");
4949
expect(getOrdinalNumber(11)).toEqual("11th");
5050
expect(getOrdinalNumber(99)).toEqual("99th");

0 commit comments

Comments
 (0)