Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
299 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | var test = require('tape')
|
---|
| 2 | var bm = require('../bm')
|
---|
| 3 | test("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.