Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
270 bytes
|
Rev | Line | |
---|
[6a3a178] | 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.