Mercurial > vim
comparison src/testdir/test_normal.vim @ 12730:6fa9f6b4d159 v8.0.1243
patch 8.0.1243: no test for what 8.0.1227 fixes
commit https://github.com/vim/vim/commit/f45938cc20ed6992e5215ffe41b73b528c78be9c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 2 15:59:57 2017 +0100
patch 8.0.1243: no test for what 8.0.1227 fixes
Problem: No test for what 8.0.1227 fixes.
Solution: Add a test that triggers the problem. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 02 Nov 2017 16:15:03 +0100 |
parents | 1fad9675d8fd |
children | cb9b2774f21f |
comparison
equal
deleted
inserted
replaced
12729:5a51910c373a | 12730:6fa9f6b4d159 |
---|---|
1205 2 | 1205 2 |
1206 let a=execute('unsilent norm! $2zg') | 1206 let a=execute('unsilent norm! $2zg') |
1207 let cnt=readfile('./Xspellfile2.add') | 1207 let cnt=readfile('./Xspellfile2.add') |
1208 call assert_match("Word 'goood' added to ./Xspellfile2.add", a) | 1208 call assert_match("Word 'goood' added to ./Xspellfile2.add", a) |
1209 call assert_equal('goood', cnt[0]) | 1209 call assert_equal('goood', cnt[0]) |
1210 | |
1211 " Test for :spellgood! | |
1212 let temp = execute(':spe!0/0') | |
1213 call assert_match('Invalid region', temp) | |
1214 let spellfile = matchstr(temp, 'Invalid region nr in \zs.*\ze line \d: 0') | |
1215 call assert_equal(['# goood', '# goood/!', '#oood', '0/0'], readfile(spellfile)) | |
1216 call delete(spellfile) | |
1210 | 1217 |
1211 " clean up | 1218 " clean up |
1212 exe "lang" oldlang | 1219 exe "lang" oldlang |
1213 call delete("./Xspellfile.add") | 1220 call delete("./Xspellfile.add") |
1214 call delete("./Xspellfile2.add") | 1221 call delete("./Xspellfile2.add") |