Upstream spencermountain/compromise state of the touched files before 7334dc16a6
This commit is contained in:
1 parent
7ccd4a2b95
commit
8124553282
2 files changed
+189
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import test from 'tape'
|
||||
import nlp from '../_lib.js'
|
||||
const here = '[three/sentence-negative] '
|
||||
|
||||
test('sentences.toPositive', function (t) {
|
||||
const doc = nlp(`do not use reverse psychology.`)
|
||||
doc.sentences().toPositive()
|
||||
t.equal(doc.text(), 'use reverse psychology.', here + 'neg')
|
||||
|
||||
doc.sentences().toNegative()
|
||||
t.equal(doc.text(), 'do not use reverse psychology.', here + 'back to neg')
|
||||
|
||||
t.end()
|
||||
})
|
||||
Reference in new issue
Block a user