vue hello world项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
299 B

var test = require('tape')
var bm = require('../bm')
test("omg",function(t){
t.equals(bm('abc','bc'),1)
t.equals(bm('ababc','bc'),3)
t.equals(bm('abc','de'),-1)
t.equals(bm('123123412345','345'),9)
t.equals(bm('aaaba','aaba'),1,'partial matches should not be skipped')
t.end()
})