comparison src/testdir/test_utf8.vim @ 30015:adb0de8be4ce v9.0.0345

patch 9.0.0345: error message for list argument could be clearer Commit: https://github.com/vim/vim/commit/d83392a43a48c566c0f3b76382a3648584dae32b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 1 12:22:46 2022 +0100 patch 9.0.0345: error message for list argument could be clearer Problem: Error message for list argument could be clearer. Solution: Include the argument number. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/11027)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Sep 2022 13:30:05 +0200
parents 0667f71ec335
children 9e1062b4aa94
comparison
equal deleted inserted replaced
30014:3fb163e2ef6c 30015:adb0de8be4ce
166 call assert_equal(2, strwidth("\u1339")) 166 call assert_equal(2, strwidth("\u1339"))
167 call assert_equal(1, strwidth("\u133a")) 167 call assert_equal(1, strwidth("\u133a"))
168 168
169 call setcellwidths([]) 169 call setcellwidths([])
170 170
171 call assert_fails('call setcellwidths(1)', 'E714:') 171 call assert_fails('call setcellwidths(1)', 'E1211:')
172 172
173 call assert_fails('call setcellwidths([1, 2, 0])', 'E1109:') 173 call assert_fails('call setcellwidths([1, 2, 0])', 'E1109:')
174 174
175 call assert_fails('call setcellwidths([[0x101]])', 'E1110:') 175 call assert_fails('call setcellwidths([[0x101]])', 'E1110:')
176 call assert_fails('call setcellwidths([[0x101, 0x102]])', 'E1110:') 176 call assert_fails('call setcellwidths([[0x101, 0x102]])', 'E1110:')