From 50f27be0cd94744a7f217ecfae2f913803ae6c44 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 11 Nov 2023 13:19:34 -0600 Subject: add world update validity pass --- src/simulation/lattice_rules.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/simulation') 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); }); -- cgit v1.2.1