Created
July 19, 2016 03:18
-
-
Save jhartikainen/873c5641962f60cb3a79584c7fb88ef1 to your computer and use it in GitHub Desktop.
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
it('"moveRight()" should increment the "x" propety by 1', function () { | |
var blocky = new Block(15, 30); | |
blocky.moveRight(); | |
assert.equal(blocky.x, 16); | |
}); | |
//....vs.... | |
it('"moveRight()" should increment the "x" propety by 1', function () { | |
var startingX = 15; | |
var endingX = startingX + 1; | |
var blocky = new Block(startingX, 30); | |
blocky.moveRight(); | |
assert.equal(blocky.x, endingX); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment