From fe615be569159dc992b860fe8e5a448eda1eea71 Mon Sep 17 00:00:00 2001 From: Re1nGer <63101847+Re1nGer@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:38:18 +0300 Subject: [PATCH] fix(curriculum): test for strict order in step 25 oop project (#54170) --- .../64a1d86b1294b2869cef1c18.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a1d86b1294b2869cef1c18.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a1d86b1294b2869cef1c18.md index 230a1b76b1f388..d822eb18e8ae7f 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a1d86b1294b2869cef1c18.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64a1d86b1294b2869cef1c18.md @@ -26,7 +26,7 @@ Your condition for the `if` statement should check if the sum of the player's `y ```js const player = new Player(); -assert.match(player.update.toString(), /if\s*\(\s*this\.position\.y\s*\+\s*this\.height\s*\+\s*this\.velocity\.y\s*<=\s*canvas\.height\s*\)\s*{\s*}/); +assert.match(player.update.toString(), /if\s*\(\s*(?:this\.position\.y\s*\+\s*this\.height\s*\+\s*this\.velocity\.y|this\.position\.y\s*\+\s*this\.velocity\.y\s*\+\s*this\.height|this\.height\s*\+\s*this\.position\.y\s*\+\s*this\.velocity\.y|this\.height\s*\+\s*this\.velocity\.y\s*\+\s*this\.position\.y|this\.velocity\.y\s*\+\s*this\.position\.y\s*\+\s*this\.height|this\.velocity\.y\s*\+\s*this\.height\s*\+\s*this\.position\.y)\s*<=\s*canvas\.height\s*\)\s*{\s*}/); ``` # --seed--