comparison src/testdir/test_functions.vim @ 19932:2c4d9ca33769 v8.2.0522

patch 8.2.0522: several errors are not tested for Commit: https://github.com/vim/vim/commit/ee4e0c1e9a81cb5d96e0060203a9033c2f28588e Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 6 21:35:05 2020 +0200 patch 8.2.0522: several errors are not tested for Problem: Several errors are not tested for. Solution: Add tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5892)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Apr 2020 21:45:31 +0200
parents 031184ace7c5
children 82ea10d554fb
comparison
equal deleted inserted replaced
19931:db6b095f4073 19932:2c4d9ca33769
1964 1964
1965 " complete() 1965 " complete()
1966 execute "normal! a\<C-r>=[complete(col('.'), range(10)), ''][1]\<CR>" 1966 execute "normal! a\<C-r>=[complete(col('.'), range(10)), ''][1]\<CR>"
1967 " complete_info() 1967 " complete_info()
1968 execute "normal! a\<C-r>=[complete(col('.'), range(10)), ''][1]\<CR>\<C-r>=[complete_info(range(5)), ''][1]\<CR>" 1968 execute "normal! a\<C-r>=[complete(col('.'), range(10)), ''][1]\<CR>\<C-r>=[complete_info(range(5)), ''][1]\<CR>"
1969 call assert_fails('call complete(1, ["a"])', 'E785:')
1969 1970
1970 " copy() 1971 " copy()
1971 call assert_equal([1, 2, 3], copy(range(1, 3))) 1972 call assert_equal([1, 2, 3], copy(range(1, 3)))
1972 1973
1973 " count() 1974 " count()