Created
February 20, 2016 20:22
-
-
Save norberttech/d7d7e7500b04426384d6 to your computer and use it in GitHub Desktop.
There is a bug in line 13 that could be avoided with mutation testing...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default Position | |
| { | |
| /// code | |
| /** | |
| * @param {Position} position | |
| * @return {boolean} | |
| */ | |
| isEqual(position) | |
| { | |
| Assert.instanceOf(position, Position); | |
| return position.getX() === this._x && this.getY() === this._y; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment