aswi2020vldc-gitlab/templetes/node_modules/buffer-indexof/test/bm.js @ 0b434236
1 | 3a515b92 | cagy | var test = require('tape') |
---|---|---|---|
2 | var bm = require('../bm') |
||
3 | test("omg",function(t){ |
||
4 | |||
5 | t.equals(bm('abc','bc'),1) |
||
6 | t.equals(bm('ababc','bc'),3) |
||
7 | t.equals(bm('abc','de'),-1) |
||
8 | |||
9 | t.equals(bm('123123412345','345'),9) |
||
10 | |||
11 | t.equals(bm('aaaba','aaba'),1,'partial matches should not be skipped') |
||
12 | t.end() |
||
13 | |||
14 | |||
15 | })
|