// Tests space.comb() const Space = require('../space'); newspace = new Space(); newspace.adhoc('\ line1\n\ &&&&transparency&&&&\n\ \n\ afterempty\n') empty = new Space(); otherspace = new Space(); otherspace.adhoc('\ &&&transparency&&&\n\ testline'); function add(char1,char2){ if (char1 == '') return 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()); console.log(empty.print()); // Should be equal to otherspace slightly displaced