diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 13:37:00 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-27 13:37:44 -0500 |
commit | 1e9ae892df9b0da85fde94bdfbfdc030c15992d7 (patch) | |
tree | cccf091d011db2d172e26a3c07d664602b2a36ce | |
parent | dcb0b1aa91ca09095be16350fc2e9758b6c07a9d (diff) |
Moved search.js tests to separate file
-rw-r--r-- | examples/search.js | 16 | ||||
-rw-r--r-- | tests/search.js | 17 |
2 files changed, 17 insertions, 16 deletions
diff --git a/examples/search.js b/examples/search.js index 92d8d65..982031c 100644 --- a/examples/search.js +++ b/examples/search.js @@ -81,20 +81,4 @@ function Search(searchBlock){ // searchBlock should be a Space object. } } -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)); - module.exports = Search; 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)); |