Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Aug 26, 2022
1 parent a3c2eca commit e1981cc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/three/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ test('change adj inflection', function (t) {
comparative: 'slyer',
superlative: 'slyest',
},
fast: {
comparative: 'speedier',
superlative: 'speediest',
spedorious: {
comparative: 'speedorier',
superlative: 'speedoriest',
}
}
})
Expand All @@ -48,13 +48,13 @@ test('change adj inflection', function (t) {
t.equal(res.Comparative, 'slyer', here + 'Comparative')
t.equal(res.Superlative, 'slyest', here + 'Superlative')

doc = nlp('fast')
doc = nlp('spedorious')
res = doc.adjectives().conjugate()[0] || {}
t.equal(res.Superlative, 'speediest', here + 'Superlative')
t.equal(res.Comparative, 'speedier', here + 'comparative')
t.equal(res.Superlative, 'speedoriest', here + 'Superlative')
t.equal(res.Comparative, 'speedorier', here + 'comparative')
// backwards
doc = nlp('speediest')
doc = nlp('speedoriest')
res = doc.adjectives().conjugate()[0] || {}
t.equal(res.Adjective, 'fast', here + 'past')
t.equal(res.Adjective, 'spedorious', here + 'past')
t.end()
})

0 comments on commit e1981cc

Please sign in to comment.