test: charsearch: Fix error/typo in legacy test.

Error was reported upstream in vim/vim#650, fixed in 7.4.1366.
Typo was fixed upstream in 7.4.1041.
This commit is contained in:
Lucas Hoffmann 2016-02-13 11:40:03 +01:00 committed by Justin M. Keyes
parent 4a02dc0828
commit 1b8caf3d75
2 changed files with 6 additions and 4 deletions

View File

@ -69,6 +69,8 @@ static char *features[] = {
// clang-format off
static int included_patches[] = {
1366,
// 1219 NA
// 1218 NA
// 1217 NA
@ -247,7 +249,7 @@ static int included_patches[] = {
// 1044 NA,
// 1043 NA,
// 1042,
// 1041,
1041,
// 1040 NA,
// 1039,
// 1038 NA,

View File

@ -23,20 +23,20 @@ describe('charsearch', function()
feed('fip')
execute('call setcharsearch(csave)')
feed(';p;p')
-- Check that setcharsearch() changes the settins.
-- Check that setcharsearch() changes the settings.
execute('/^Z')
feed('ylfep')
execute("call setcharsearch({'char': 'k'})")
feed(';p')
execute("call setcharsearch({'forward': 0})")
feed('$;p')
execute("call setcharseearch({'until'}: 1})")
execute("call setcharsearch({'until': 1})")
feed(';;p')
-- Assert buffer contents.
expect([[
XabcdeXfghijkeXmnopqreXtuvwxyz
YabcdeYfghiYjkeYmnopqreYtuvwxyz
ZabcdeZfghijkZemnokZqretkZvwxyz]])
ZabcdeZfghijkZZemnokqretkZvwxyz]])
end)
end)