aboutsummaryrefslogtreecommitdiff
path: root/tests/space_search.js
blob: 14ec174655b8635f4876da5de464b800b2c43037 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Tests space.search

const Space = require('../space')

let text = new Space();
text.adhoc('\
\n\
 jarvis\n\
 jarvis\n\
 jarvis \
');

let line = new Space();
line.adhoc('jarvis');

console.log(text.search(line))