vim-patch:8.1.0836: user completion test can fail on MS-Windows

Problem:    User completion test can fail on MS-Windows.
Solution:   Allow for other names befor "Administrator".
346d2a359a
This commit is contained in:
Jan Edmund Lazo 2019-11-25 00:43:28 -05:00
parent 226ad89a2c
commit 0ee4df4d96
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -515,8 +515,9 @@ func Test_cmdline_complete_user_names()
let names = system('net user')
if names =~ 'Administrator'
" Trying completion of :e ~A should complete to Administrator.
" There could be other names starting with "A" before Administrator.
call feedkeys(':e ~A' . "\<c-a>\<c-B>\"\<cr>", 'tx')
call assert_match('^"e \~Administrator', @:)
call assert_match('^"e \~.*Administrator', @:)
endif
endif
endfunc