source: trip-planner-front/node_modules/buffer-indexof/test/bm.js@ 59329aa

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

initial commit

  • Property mode set to 100644
File size: 299 bytes
RevLine 
[6a3a178]1var test = require('tape')
2var bm = require('../bm')
3test("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})
Note: See TracBrowser for help on using the repository browser.