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 b548ddb commit b00a6cbCopy full SHA for b00a6cb
Sprint-3/2-practice-tdd/count.test.js
@@ -41,4 +41,13 @@ test("Should return 0 for empty string", () => {
41
// case 4
42
test("should be case sensitive", () => {
43
expect(countChar("aA", "a")).toEqual(1);
44
-});
+});
45
+
46
+//case 5 Non-alphabet characters
47
+test(`Should work with numbers and symbols`, () => {
48
+ expect(countChar("123451234123!&", "1")).toEqual(3);
49
+ expect(countChar("@1hello@", "@")).toEqual(2);
50
+ expect(countChar("white space ", " ")).toEqual(2);
51
+ expect(countChar("-2534!-1322!", "!")).toEqual(2);
52
+ expect(countChar("-hello ", "-")).toEqual(1);
53
+})
0 commit comments