summaryrefslogtreecommitdiff
path: root/src/simulation/lattice_rules.test.js
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-11-11 13:19:34 -0600
committersanine <sanine.not@pm.me>2023-11-11 13:19:34 -0600
commit50f27be0cd94744a7f217ecfae2f913803ae6c44 (patch)
tree962e28feabbd6d3083adff79ebec764849a4e9da /src/simulation/lattice_rules.test.js
parent5535ff5b2894e97b5387b52caee6078d461c2210 (diff)
add world update validity pass
Diffstat (limited to 'src/simulation/lattice_rules.test.js')
-rw-r--r--src/simulation/lattice_rules.test.js6
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);
});