diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 21:34:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 21:34:18 +0800 |
| commit | c00e711d5a860fb019f594d164b4327d942313f8 (patch) | |
| tree | 6b88d5ab645201a103cad3a67a98eadb07e6e5b4 /src/nvim/testdir/test_utf8.vim | |
| parent | d60fa43466eaf59999e39860ce6d0ce2fa2cfb36 (diff) | |
| parent | 46a54dd6a03f51ba08142abe0aa5710705917987 (diff) | |
| download | rneovim-c00e711d5a860fb019f594d164b4327d942313f8.tar.gz rneovim-c00e711d5a860fb019f594d164b4327d942313f8.tar.bz2 rneovim-c00e711d5a860fb019f594d164b4327d942313f8.zip | |
Merge pull request #20814 from zeertzjq/vim-8.2.0610
vim-patch:8.2.{0610,0619,1852}
Diffstat (limited to 'src/nvim/testdir/test_utf8.vim')
| -rw-r--r-- | src/nvim/testdir/test_utf8.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_utf8.vim b/src/nvim/testdir/test_utf8.vim index ab3503c282..7145d303cc 100644 --- a/src/nvim/testdir/test_utf8.vim +++ b/src/nvim/testdir/test_utf8.vim @@ -131,9 +131,13 @@ func Test_list2str_str2list_latin1() let save_encoding = &encoding " set encoding=latin1 - + let lres = str2list(s, 1) let sres = list2str(l, 1) + call assert_equal([65, 66, 67], str2list("ABC")) + + " Try converting a list to a string in latin-1 encoding + call assert_equal([1, 2, 3], str2list(list2str([1, 2, 3]))) let &encoding = save_encoding call assert_equal(l, lres) |