diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-07 19:05:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-07 19:05:09 +0200 |
commit | f6ed61e1489e40eada55a4f1782e1ed82bcad7d9 (patch) | |
tree | 59c67f3a73489d4536e741b883a9ad5f45c3cc2f /src/testdir/test_spell.vim | |
parent | 30e9b3c4256710781c3bd64efb33f138e4e074b3 (diff) |
patch 8.1.2004: more functions can be used as methodsv8.1.2004
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index af72637ce3..a44d95534f 100644 --- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -73,7 +73,7 @@ func Test_spellbadword() set spell call assert_equal(['bycycle', 'bad'], spellbadword('My bycycle.')) - call assert_equal(['another', 'caps'], spellbadword('A sentence. another sentence')) + call assert_equal(['another', 'caps'], 'A sentence. another sentence'->spellbadword()) set spelllang=en call assert_equal(['', ''], spellbadword('centre')) @@ -179,7 +179,7 @@ func Test_zz_basic() \ ) call assert_equal("gebletegek", soundfold('goobledygoook')) - call assert_equal("kepereneven", soundfold('kóopërÿnôven')) + call assert_equal("kepereneven", 'kóopërÿnôven'->soundfold()) call assert_equal("everles gesvets etele", soundfold('oeverloos gezwets edale')) endfunc @@ -440,7 +440,7 @@ func TestGoodBadBase() break endif let prevbad = bad - let lst = spellsuggest(bad, 3) + let lst = bad->spellsuggest(3) normal mm call add(result, [bad, lst]) |