Sha256: 7402f84890994ace2929b686dae0e8dc03c5c12799e11362fed6ce26d5a052dd
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
require_main('cells.js'); require_main('life.js'); Screw.Unit(function () { describe('Life', function () { var game; before(function () { game = new Life(new Cells([ [0, 1, 0], [0, 1, 0], [0, 1, 0] ])); }); it("steps", function () { game.step(); expect(game.cells.get(0, 0).age).to(equal, 0); expect(game.cells.get(0, 1).age).to(equal, 0); expect(game.cells.get(0, 2).age).to(equal, 0); expect(game.cells.get(1, 0).age).to(equal, 1); expect(game.cells.get(1, 1).age).to(equal, 2); expect(game.cells.get(1, 2).age).to(equal, 1); expect(game.cells.get(2, 0).age).to(equal, 0); expect(game.cells.get(2, 1).age).to(equal, 0); expect(game.cells.get(2, 2).age).to(equal, 0); }); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shenandoah-0.2.0 | features/example_projects/base/spec/life_spec.js |