From 9ae02ad2c2676a5991c6c952952fc6fcfdb96304 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Fri, 27 Dec 2019 14:52:19 -0500 Subject: integrated .loc with space.fetch (and dependencies) --- tests/space_comb.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'tests/space_comb.js') diff --git a/tests/space_comb.js b/tests/space_comb.js index 5200fd8..819ee5c 100644 --- a/tests/space_comb.js +++ b/tests/space_comb.js @@ -21,10 +21,15 @@ function add(char1,char2){ else return char1; } -otherspace.comb(newspace, add, [0,0]); - -empty.comb(otherspace, add, [0,0]); -empty.comb(otherspace, add, [8,0]); - -//console.log(otherspace.print()); +otherspace.loc = [0,0]; +newspace.loc = [0,0]; +otherspace.comb(newspace, add); + +empty.comb(otherspace, add); +otherspace.loc = [8,0]; +empty.comb(otherspace, add); +newspace.loc = [0, -32]; +empty.comb(newspace, add); +console.log(otherspace.print()); +console.log('--------'); console.log(empty.print()); // Should be equal to otherspace slightly displaced -- cgit