comparison src/testdir/test_spell.vim @ 18269:57b18521216f v8.1.2129

patch 8.1.2129: using hard coded executable path in test Commit: https://github.com/vim/vim/commit/1ac41a5c1352306942344777d2ba86dccd84ffad Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 10 13:30:12 2019 +0200 patch 8.1.2129: using hard coded executable path in test Problem: Using hard coded executable path in test. Solution: Use v:progpath. Use $VIMRUNTIME instead of "runtime". (James McCoy, closes #5025)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Oct 2019 13:45:04 +0200
parents 988e5a868b60
children fc68850c5233
comparison
equal deleted inserted replaced
18268:3319258f7b5b 18269:57b18521216f
128 128
129 func Test_spellinfo() 129 func Test_spellinfo()
130 new 130 new
131 131
132 set enc=latin1 spell spelllang=en 132 set enc=latin1 spell spelllang=en
133 call assert_match("^\nfile: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo')) 133 call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo'))
134 134
135 set enc=cp1250 spell spelllang=en 135 set enc=cp1250 spell spelllang=en
136 call assert_match("^\nfile: .*/runtime/spell/en.ascii.spl\n$", execute('spellinfo')) 136 call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.ascii.spl\n$", execute('spellinfo'))
137 137
138 set enc=utf-8 spell spelllang=en 138 set enc=utf-8 spell spelllang=en
139 call assert_match("^\nfile: .*/runtime/spell/en.utf-8.spl\n$", execute('spellinfo')) 139 call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.utf-8.spl\n$", execute('spellinfo'))
140 140
141 set enc=latin1 spell spelllang=en_us,en_nz 141 set enc=latin1 spell spelllang=en_us,en_nz
142 call assert_match("^\n" . 142 call assert_match("^\n" .
143 \ "file: .*/runtime/spell/en.latin1.spl\n" . 143 \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n" .
144 \ "file: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo')) 144 \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo'))
145 145
146 set spell spelllang= 146 set spell spelllang=
147 call assert_fails('spellinfo', 'E756:') 147 call assert_fails('spellinfo', 'E756:')
148 148
149 set nospell spelllang=en 149 set nospell spelllang=en