From 44a1ea97d30ebed1eb58df5c7f9eb615fed64e4c Mon Sep 17 00:00:00 2001 From: Annachiara Fortuna <101217680+achf01@users.noreply.github.com> Date: Sun, 11 Jan 2026 06:49:15 +0100 Subject: [PATCH] fix(curriculum): ensure solution passes when longest word is first in sentence (#65029) --- .../a26cbbe9ad8655a977e1ceb5.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/curriculum/challenges/english/blocks/lab-longest-word-in-a-string/a26cbbe9ad8655a977e1ceb5.md b/curriculum/challenges/english/blocks/lab-longest-word-in-a-string/a26cbbe9ad8655a977e1ceb5.md index 59323c17bc2..c4bd793d2c1 100644 --- a/curriculum/challenges/english/blocks/lab-longest-word-in-a-string/a26cbbe9ad8655a977e1ceb5.md +++ b/curriculum/challenges/english/blocks/lab-longest-word-in-a-string/a26cbbe9ad8655a977e1ceb5.md @@ -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