mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-29 08:00:43 -04:00
fix(curriculum): test for strict order in step 25 oop project (#54170)
This commit is contained in:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user