diff options
Diffstat (limited to 'src/simulation')
-rw-r--r-- | src/simulation/lattice_rules.test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/lattice_rules.test.js b/src/simulation/lattice_rules.test.js index 9a6a344..e541add 100644 --- a/src/simulation/lattice_rules.test.js +++ b/src/simulation/lattice_rules.test.js @@ -22,7 +22,7 @@ test("blinker", () => { [ D, D, D, D, D ], ]; - const world = { lattice, lattice_rules, agents: [], senses: [], actions: [] }; + const world = { lattice, lattice_rules, agents: [], senses: [], actions: [], validity: [] }; expect(world_update(world).lattice).toEqual([ [ D, D, D, D, D ], [ D, D, L, D, D ], @@ -46,7 +46,7 @@ test("glider", () => { [ D, D, D, D, D, D ], ]; - const world = { lattice, lattice_rules, agents: [], senses: [], actions: [] }; + const world = { lattice, lattice_rules, agents: [], senses: [], actions: [], validity: [] }; //expect(world_update(world).lattice).toEqual([ expect(apply(world_update, 1, world).lattice).toEqual([ [ D, D, D, D, D, D ], @@ -94,7 +94,7 @@ test("beehive", () => { [ D, D, D, D, D, D ], ]; - const world = { lattice, lattice_rules, agents: [], senses: [], actions: [] }; + const world = { lattice, lattice_rules, agents: [], senses: [], actions: [], validity: [] }; //expect(world_update(world).lattice).toEqual([ expect(apply(world_update, 1, world).lattice).toEqual(lattice); }); |