summaryrefslogtreecommitdiff
path: root/src/testdir/test_spell.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-10 13:30:12 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-10 13:30:12 +0200
commit1ac41a5c1352306942344777d2ba86dccd84ffad (patch)
tree17371b356f3e214da8605295511d1cf66623d1ad /src/testdir/test_spell.vim
parent93268054428fe3a6bbe3f89d2def2fec4eabcf5f (diff)
downloadvim-git-1ac41a5c1352306942344777d2ba86dccd84ffad.tar.gz
patch 8.1.2129: using hard coded executable path in testv8.1.2129
Problem: Using hard coded executable path in test. Solution: Use v:progpath. Use $VIMRUNTIME instead of "runtime". (James McCoy, closes #5025)
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r--src/testdir/test_spell.vim10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim
index a44d95534..523126652 100644
--- a/src/testdir/test_spell.vim
+++ b/src/testdir/test_spell.vim
@@ -130,18 +130,18 @@ func Test_spellinfo()
new
set enc=latin1 spell spelllang=en
- call assert_match("^\nfile: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo'))
+ call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo'))
set enc=cp1250 spell spelllang=en
- call assert_match("^\nfile: .*/runtime/spell/en.ascii.spl\n$", execute('spellinfo'))
+ call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.ascii.spl\n$", execute('spellinfo'))
set enc=utf-8 spell spelllang=en
- call assert_match("^\nfile: .*/runtime/spell/en.utf-8.spl\n$", execute('spellinfo'))
+ call assert_match("^\nfile: " .. $VIMRUNTIME .. "/spell/en.utf-8.spl\n$", execute('spellinfo'))
set enc=latin1 spell spelllang=en_us,en_nz
call assert_match("^\n" .
- \ "file: .*/runtime/spell/en.latin1.spl\n" .
- \ "file: .*/runtime/spell/en.latin1.spl\n$", execute('spellinfo'))
+ \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n" .
+ \ "file: " .. $VIMRUNTIME .. "/spell/en.latin1.spl\n$", execute('spellinfo'))
set spell spelllang=
call assert_fails('spellinfo', 'E756:')