source:
trip-planner-front/node_modules/buffer-indexof/test/partial-match.js
Last change on this file was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 270 bytes |
Line | |
---|---|
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 | }) |
Note:
See TracBrowser
for help on using the repository browser.