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

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

initial commit

  • Property mode set to 100644
File size: 270 bytes
Line 
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.