Skip to content

Commit

Permalink
update tests for combined keyboard edits and capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
tvquizphd committed Jan 10, 2021
1 parent 63e1014 commit f17aa9b
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,18 @@ test('NSpell()', function (t) {

st.deepEqual(
us.suggest('Ghandi'),
['Brandi', 'Ghana', 'Grandee', 'Shanxi', 'hand', 'hands', 'handy'],
[
'Brandi',
'Ghana',
'Grandee',
'Hand',
'Hands',
'Handy',
'Hanoi',
'Hindi',
'Randi',
'Shanxi'
],
'should suggest alternatives'
)

Expand Down Expand Up @@ -479,22 +490,22 @@ test('NSpell()', function (t) {
us.suggest('dont'),
[
'cont',
'font',
'dent',
'dint',
'done',
'dong',
'wont',
'font',
'dolt',
'don',
"don't",
'dona',
'dons',
'dost',
'dot',
'wont',
'Donn',
'Mont',
'ONT'
'Ont'
],
'should suggest alternatives including correct conjunction'
)
Expand All @@ -521,7 +532,6 @@ test('NSpell()', function (t) {
us.suggest('COLORFU'),
['COLORFUL'],
'should suggest alternatives for upper-case with added letter'
>>>>>>> fix_capitalization
)

st.end()
Expand Down

0 comments on commit f17aa9b

Please sign in to comment.