Skip to content

Commit

Permalink
fix(curriculum): test for strict order in step 25 oop project (freeCo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Re1nGer authored Apr 1, 2024
1 parent a9c0f84 commit fe615be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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--
Expand Down

0 comments on commit fe615be

Please sign in to comment.