aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/search.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/search.js b/tests/search.js
new file mode 100644
index 0000000..4dd1655
--- /dev/null
+++ b/tests/search.js
@@ -0,0 +1,17 @@
+// Tests Search.js, in basic function.
+
+let space = new Space();
+space.adhoc('jarvis');
+let test = new Search(space);
+let tile = new Space();
+tile.adhoc('\
+ \n\
+ jarvis \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+');
+console.log(test.add([2,2],tile));