fix(curriculum): separate empty string test in Sentence Analyzer (#57686)

Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
Krzysztof G.
2024-12-22 19:43:15 +01:00
committed by GitHub
parent 6187e3c0e3
commit 0227d171a5

View File

@@ -54,7 +54,13 @@ Your `getWordCount` function should return the correct word count for any senten
assert.strictEqual(getWordCount("freeCodeCamp has a great community of kind people"), 8);
assert.strictEqual(getWordCount("The freeCodeCamp curriculum is constantly updated"), 6);
assert.strictEqual(getWordCount("freeCodeCamp teaches both frontend and backend development"), 7);
```
Your `getWordCount` function should return the correct word count for an empty string, or a string only with spaces.
```js
assert.strictEqual(getWordCount(""), 0);
assert.strictEqual(getWordCount(" "), 0);
```
# --seed--