aswi2020vldc-gitlab/templetes/node_modules/buffer-indexof/test/partial-match.js @ 143404cb
1 |
var test = require('tape') |
---|---|
2 |
var bufferIndexOf = require('../') |
3 |
|
4 |
test("doesnt skip partial matches",function(t){ |
5 |
//'aaaba'.indexOf('aaba') // --> 1
|
6 |
t.equals(bufferIndexOf(new Buffer('aaaba'), new Buffer('aaba')),1,'partial matches should not be skipped') |
7 |
t.end() |
8 |
})
|