We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f3d6cf commit bd8ab4bCopy full SHA for bd8ab4b
Sprint-3/2-practice-tdd/count.test.js
@@ -3,6 +3,14 @@ const countChar = require("./count");
3
// Given a string str and a single character char to search for,
4
// When the countChar function is called with these inputs,
5
// Then it should:
6
+test("count how many times a character occurs a string", () => {
7
+ const stringOfCharacters = "kiwi";
8
+ const findCharacter = "w";
9
+
10
+ const result = countChar(stringOfCharacters, findCharacter);
11
12
+ expect(result).toBe(5);
13
+});
14
15
// Scenario: Multiple Occurrences
16
// Given the input string str,
0 commit comments