Files
2026-07-13 12:48:55 +08:00

11 lines
276 B
JavaScript

import test from 'tape'
import nlp from '../_lib.js'
const here = '[one/misc] '
test('lazy-pointer-issue', function (t) {
const doc = nlp.tokenize(`four two five`)
const m = doc.eq(0).match('two')
t.equal(m.text(), 'two', here + 'convert to full-pointer')
t.end()
})