source: trip-planner-front/node_modules/buffer-indexof/test/partial-match.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 270 bytes
RevLine 
[6a3a178]1var test = require('tape')
2var bufferIndexOf = require('../')
3
4test("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.