File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 66// ═══════════════════════════════════════════════════════
77
88// implement a function countChar that counts the number of times a character occurs in a string
9- const countChar = require ( "./count" ) ;
9+ // const countChar = require("./count");
1010
1111// ───────────────────────────────────────────────────────
1212// 📋 Specification:
@@ -25,6 +25,7 @@ const countChar = require("./count");
2525// And a character `char` that occurs one or more times in `str` (e.g., 'a' in 'aaaaa'),
2626// When the function is called with these inputs,
2727// Then it should correctly count occurrences of `char`.
28+ const countChar = require ( "./count" ) ;
2829test ( "should count multiple occurrences of a character" , ( ) => {
2930 const str = "aaaaa" ; // 🎯 Input: repeated character
3031 const char = "a" ; // 🔍 Search for: 'a'
You can’t perform that action at this time.
0 commit comments