仪表盘
版本库
文件存储
活动
搜索
登录
刘苏义
/
ruoyi-api
分支自
ard/ruoyi-api
概况
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
筛选井
Administrator
2023-08-25
fc1e38abb2c5c56ac119e2af346c6f3c5f4e5fd5
[~liusuyi/ruoyi-api.git]
/
ruoyi-ui
/
node_modules
/
buffer-indexof
/
test
/
partial-match.js
1
2
3
4
5
6
7
8
var test = require('tape')
var bufferIndexOf = require('../')
test("doesnt skip partial matches",function(t){
//'aaaba'.indexOf('aaba') // --> 1
t.equals(bufferIndexOf(new Buffer('aaaba'), new Buffer('aaba')),1,'partial matches should not be skipped')
t.end()
})