diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 14:52:19 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 14:52:19 -0500 |
commit | 9ae02ad2c2676a5991c6c952952fc6fcfdb96304 (patch) | |
tree | 7f255b2eaaf9ee7c5cd532397f960001afb25b01 /tests | |
parent | 310165f74d17631cfaaadc71e55000303ba0262d (diff) |
integrated .loc with space.fetch (and dependencies)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/space_comb.js | 17 |
1 files changed, 11 insertions, 6 deletions
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 |