0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.0990: Using duplicate error number

Problem:    Using duplicate error number.
Solution:   Use an unused error number.  Add a test for it.
This commit is contained in:
Bram Moolenaar
2020-06-16 22:27:39 +02:00
parent a6e8bf2d89
commit a1bc6f1293
3 changed files with 4 additions and 2 deletions

View File

@@ -1958,6 +1958,7 @@ func Test_readdirex_sort()
let files = readdirex('Xdir2', 1, #{sort: 'none'})->map({-> v:val.name})
let unsorted = copy(files)
call assert_equal(['README.txt', 'Readme.txt', 'readme.txt'], sort(files), 'unsorted')
call assert_fails("call readdirex('Xdir2', 1, #{slort: 'none'})", 'E857: Dictionary key "sort" required')
" 3) sort by case (same as default)
let files = readdirex('Xdir2', 1, #{sort: 'case'})->map({-> v:val.name})