mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 17:03:30 -05:00
fix(curriculum): ensure solution passes when longest word is first in sentence (#65029)
This commit is contained in:
committed by
GitHub
parent
bf2742787b
commit
44a1ea97d3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user