Skip to content

Commit 566278d

Browse files
committed
The test was edited
1 parent 45f409b commit 566278d

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ test("counts a single occurrence of a character", () => {
1616
// When the function is called with these inputs,
1717
// Then it should correctly count overlapping occurrences of char (e.g., 'a' appears five times in 'aaaaa').
1818
test("counts multiple occurrences of a character", () => {
19-
expect(countChar("banana", "a")).toEqual(3);
20-
expect(countChar("mississippi", "s")).toEqual(4);
21-
});
22-
23-
test("should count multiple occurrences of a character", () => {
24-
const str = "aaaaa";
25-
const Char = "a";
26-
const count = countChar(str,Char);
27-
expect(count).toEqual(5);
19+
expect(countChar("aaaaa", "a")).toEqual(5);
20+
expect(countChar("banana", "a")).toEqual(3);
21+
expect(countChar("mississippi", "s")).toEqual(4);
2822
});
2923

24+
//test("should count multiple occurrences of a character", () => {
25+
// const str = "aaaaa";
26+
//const Char = "a";
27+
//const count = countChar(str,Char);
28+
// expect(count).toEqual(5);
29+
//});
30+
3031
// Scenario: No Occurrences
3132
// Given the input string str,
3233
// And a character char that does not exist within the case-sensitive str,

0 commit comments

Comments
 (0)