aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 13:37:00 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 13:37:44 -0500
commit1e9ae892df9b0da85fde94bdfbfdc030c15992d7 (patch)
treecccf091d011db2d172e26a3c07d664602b2a36ce /tests
parentdcb0b1aa91ca09095be16350fc2e9758b6c07a9d (diff)
Moved search.js tests to separate file
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));