aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:52:19 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 14:52:19 -0500
commit9ae02ad2c2676a5991c6c952952fc6fcfdb96304 (patch)
tree7f255b2eaaf9ee7c5cd532397f960001afb25b01 /tests
parent310165f74d17631cfaaadc71e55000303ba0262d (diff)
integrated .loc with space.fetch (and dependencies)
Diffstat (limited to 'tests')
-rw-r--r--tests/space_comb.js17
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