File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ func TearDown()
1414 call delete (' Xtest.latin1.add.spl' )
1515 call delete (' Xtest.latin1.spl' )
1616 call delete (' Xtest.latin1.sug' )
17+ " set 'encoding' to clear the word list
18+ set encoding = utf- 8
1719endfunc
1820
1921func Test_wrap_search ()
@@ -781,6 +783,10 @@ func Test_zz_sal_and_addition()
781783 set spl = Xtest_ca.latin1.spl
782784 call assert_equal (" elequint" , FirstSpellWord ())
783785 call assert_equal (" elekwint" , SecondSpellWord ())
786+
787+ bwipe!
788+ set spellfile =
789+ set spl &
784790endfunc
785791
786792func Test_spellfile_value ()
@@ -864,9 +870,6 @@ func Test_spell_good_word_invalid()
864870 sil ! norm z=
865871
866872 bwipe!
867- " clear the internal word list
868- set enc = latin1
869- set enc = utf- 8
870873endfunc
871874
872875func LoadAffAndDic (aff_contents, dic_contents)
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ func TearDown()
1313 call delete (' Xtest.utf-8.add.spl' )
1414 call delete (' Xtest.utf-8.spl' )
1515 call delete (' Xtest.utf-8.sug' )
16+ " set 'encoding' to clear the word list
17+ set encoding = utf- 8
1618endfunc
1719
1820let g: test_data_aff1 = [
@@ -484,7 +486,6 @@ let g:test_data_aff_sal = [
484486 \ ]
485487
486488func LoadAffAndDic (aff_contents, dic_contents)
487- set enc = utf- 8
488489 set spellfile =
489490 call writefile (a: aff_contents , " Xtest.aff" )
490491 call writefile (a: dic_contents , " Xtest.dic" )
@@ -759,6 +760,7 @@ func Test_spell_sal_and_addition()
759760 call assert_equal (" elequint" , FirstSpellWord ())
760761 call assert_equal (" elekwint" , SecondSpellWord ())
761762
763+ bwipe!
762764 set spellfile =
763765 set spl &
764766endfunc
@@ -802,8 +804,6 @@ func Test_word_index()
802804 sil norm z=
803805
804806 bwipe!
805- " clear the word list
806- set enc = utf- 8
807807 call delete (' Xtmpfile' )
808808endfunc
809809
@@ -816,7 +816,6 @@ func Test_check_empty_line()
816816 sil ! norm P ]svc
817817 norm P ]s
818818
819- " TODO: should we clear the word list?
820819 bwipe!
821820endfunc
822821
Original file line number Diff line number Diff line change @@ -735,6 +735,8 @@ static char *(features[]) =
735735
736736static int included_patches [] =
737737{ /* Add new patch number below this line */
738+ /**/
739+ 34 ,
738740/**/
739741 33 ,
740742/**/
You can’t perform that action at this time.
0 commit comments