fix(curriculum): test for strict order in step 25 oop project (#54170)

pull/54267/head
Re1nGer 2024-04-01 18:38:18 +03:00 committed by GitHub
parent a9c0f84736
commit fe615be569
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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--