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 cf348b5 commit 37b2b72Copy full SHA for 37b2b72
Sprint-3/2-practice-tdd/count.test.js
@@ -39,3 +39,10 @@ test("should be case sensitive", () => {
39
const count = countChar(str, char);
40
expect(count).toEqual(1);
41
});
42
+
43
+test("should count non-alphabet characters", () => {
44
+ const str = "hello!!!";
45
+ const char = "!";
46
+ const count = countChar(str, char);
47
+ expect(count).toEqual(3);
48
+});
0 commit comments