aboutsummaryrefslogtreecommitdiff
path: root/tests/space_comb.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/space_comb.js')
-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