comparison src/testdir/test_spell.vim @ 18273:fc68850c5233 v8.1.2131

patch 8.1.2131: MSVC tests fail Commit: https://github.com/vim/vim/commit/c25e702deec74771e49f6c2df4cda7a1f97d0c1e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 10 14:08:26 2019 +0200 patch 8.1.2131: MSVC tests fail Problem: MSVC tests fail. Solution: Replace backslashes with slashes.
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Oct 2019 14:15:04 +0200
parents 57b18521216f
children 596a04c49d76
comparison
equal deleted inserted replaced
18272:88a6aab44084 18273:fc68850c5233
126 bwipe! 126 bwipe!
127 endfunc 127 endfunc
128 128
129 func Test_spellinfo() 129 func Test_spellinfo()
130 new 130 new
131 let runtime = substitute($VIMRUNTIME, '\\', '/', 'g')
131 132
132 set enc=latin1 spell spelllang=en 133 set enc=latin1 spell spelllang=en
133 call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo')) 134 call assert_match("^\nfile: " .. runtime .. "/spell/en.latin1.spl\n$", execute('spellinfo'))
134 135
135 set enc=cp1250 spell spelllang=en 136 set enc=cp1250 spell spelllang=en
136 call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.ascii.spl\n$", execute('spellinfo')) 137 call assert_match("^\nfile: " .. runtime .. "/spell/en.ascii.spl\n$", execute('spellinfo'))
137 138
138 set enc=utf-8 spell spelllang=en 139 set enc=utf-8 spell spelllang=en
139 call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.utf-8.spl\n$", execute('spellinfo')) 140 call assert_match("^\nfile: " .. runtime .. "/spell/en.utf-8.spl\n$", execute('spellinfo'))
140 141
141 set enc=latin1 spell spelllang=en_us,en_nz 142 set enc=latin1 spell spelllang=en_us,en_nz
142 call assert_match("^\n" . 143 call assert_match("^\n" .
143 \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n" . 144 \ "file: " .. runtime .. "/spell/en.latin1.spl\n" .
144 \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo')) 145 \ "file: " .. runtime.. "/spell/en.latin1.spl\n$", execute('spellinfo'))
145 146
146 set spell spelllang= 147 set spell spelllang=
147 call assert_fails('spellinfo', 'E756:') 148 call assert_fails('spellinfo', 'E756:')
148 149
149 set nospell spelllang=en 150 set nospell spelllang=en