diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-20 16:50:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-20 16:50:00 +0200 |
commit | 08f4157c5cabc55bcb22f04dd7c717aba40caa34 (patch) | |
tree | 3adf5dc4585df51fbe7bd51573f5ea6094cb2702 /src/testdir/test_utf8.vim | |
parent | ad4dc83389931a0354c3691b42f99a5bb98c766f (diff) | |
download | vim-git-08f4157c5cabc55bcb22f04dd7c717aba40caa34.tar.gz |
patch 8.2.0610: some tests are still old stylev8.2.0610
Problem: Some tests are still old style.
Solution: Convert to new style tests. (Yegappan Lakshmanan, closes #5957)
Diffstat (limited to 'src/testdir/test_utf8.vim')
-rw-r--r-- | src/testdir/test_utf8.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_utf8.vim b/src/testdir/test_utf8.vim index fa6f76a61..e83a3d04d 100644 --- a/src/testdir/test_utf8.vim +++ b/src/testdir/test_utf8.vim @@ -103,6 +103,9 @@ func Test_list2str_str2list_latin1() 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) call assert_equal(s, sres) |