Created
October 3, 2014 20:46
-
-
Save plato-cambrian/ca76cc268d4c8ec00f79 to your computer and use it in GitHub Desktop.
This file contains 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
// npm install -g jasmine-node | |
// jasmine-node jasmineLoopSpec.js | |
// output: https://gist.github.com/plato-cambrian/f7cb3efb7fd130502eac | |
var coords = [{x:0, y: 0}]; | |
describe('coords', function(){ | |
it('coords[0] matches every x in width and y in height', function(){ | |
var i = 0; | |
for(var x = 0; x < width; ++x) { | |
for(var y = 0; y < height; ++y) { | |
expect(coords[i].x).toBe(x); | |
expect(coords[i].y).toBe(y); | |
++i; | |
} | |
} | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment