Skip to content

Commit 78811e9

Browse files
author
Arthur
committed
count test pass
1 parent 6220ca7 commit 78811e9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ test("should count multiple occurrences of a character", () => {
2323
// When the function is called with these inputs,
2424
// Then it should return 0, indicating that no occurrences of `char` were found.
2525

26-
//for committing//
26+
test("No Occurrences", () => {
27+
const str = "aaaaa";
28+
const char = "b";
29+
const count = countChar(str, char);
30+
expect(count).toEqual(0);
31+
});

0 commit comments

Comments
 (0)