fix(curriculum): ensure solution passes when longest word is first in sentence (#65029)

This commit is contained in:
Annachiara Fortuna
2026-01-11 06:49:15 +01:00
committed by GitHub
parent bf2742787b
commit 44a1ea97d3

View File

@@ -61,6 +61,12 @@ assert.strictEqual(findLongestWordLength('May the force be with you'), 5);
assert.strictEqual(findLongestWordLength('Google do a barrel roll'), 6);
```
`findLongestWordLength("Googling do a barrel roll")` should return `8`.
```js
assert.strictEqual(findLongestWordLength('Googling do a barrel roll'), 8);
```
`findLongestWordLength("What is the average airspeed velocity of an unladen swallow")` should return `8`.
```js