Mercurial > vim
comparison src/testdir/test_utf8.vim @ 22153:7aa10e8e7aec v8.2.1626
patch 8.2.1626: test for strchars() fails with different error number
Commit: https://github.com/vim/vim/commit/707be5f3524accb8b36e80bd2532e00b8246df55
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 6 17:13:44 2020 +0200
patch 8.2.1626: test for strchars() fails with different error number
Problem: Test for strchars() fails with different error number.
Solution: Adjust the error number.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Sep 2020 17:15:04 +0200 |
parents | 2030f8267db9 |
children | 89c324e327c0 |
comparison
equal
deleted
inserted
replaced
22152:4150aaf0f253 | 22153:7aa10e8e7aec |
---|---|
19 call assert_equal(exp[i][0], strchars(inp[i])) | 19 call assert_equal(exp[i][0], strchars(inp[i])) |
20 call assert_equal(exp[i][1], inp[i]->strchars(0)) | 20 call assert_equal(exp[i][1], inp[i]->strchars(0)) |
21 call assert_equal(exp[i][2], strchars(inp[i], 1)) | 21 call assert_equal(exp[i][2], strchars(inp[i], 1)) |
22 endfor | 22 endfor |
23 call assert_fails("let v=strchars('abc', [])", 'E745:') | 23 call assert_fails("let v=strchars('abc', [])", 'E745:') |
24 call assert_fails("let v=strchars('abc', 2)", 'E474:') | 24 call assert_fails("let v=strchars('abc', 2)", 'E1023:') |
25 endfunc | 25 endfunc |
26 | 26 |
27 " Test for customlist completion | 27 " Test for customlist completion |
28 func CustomComplete1(lead, line, pos) | 28 func CustomComplete1(lead, line, pos) |
29 return ['あ', 'い'] | 29 return ['あ', 'い'] |