Skip to content

Instantly share code, notes, and snippets.

@norberttech
Created February 20, 2016 20:22
Show Gist options
  • Select an option

  • Save norberttech/d7d7e7500b04426384d6 to your computer and use it in GitHub Desktop.

Select an option

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