Mercurial > vim
comparison src/testdir/test_utf8.vim @ 20109:e82996ad131f v8.2.0610
patch 8.2.0610: some tests are still old style
Commit: https://github.com/vim/vim/commit/08f4157c5cabc55bcb22f04dd7c717aba40caa34
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 20 16:50:00 2020 +0200
patch 8.2.0610: some tests are still old style
Problem: Some tests are still old style.
Solution: Convert to new style tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5957)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Apr 2020 17:00:04 +0200 |
parents | 546bdeef35f1 |
children | 6a4806e326dd |
comparison
equal
deleted
inserted
replaced
20108:8823765c60f2 | 20109:e82996ad131f |
---|---|
101 | 101 |
102 let lres = str2list(s, 1) | 102 let lres = str2list(s, 1) |
103 let sres = list2str(l, 1) | 103 let sres = list2str(l, 1) |
104 call assert_equal([65, 66, 67], str2list("ABC")) | 104 call assert_equal([65, 66, 67], str2list("ABC")) |
105 | 105 |
106 " Try converting a list to a string in latin-1 encoding | |
107 call assert_equal([1, 2, 3], str2list(list2str([1, 2, 3]))) | |
108 | |
106 let &encoding = save_encoding | 109 let &encoding = save_encoding |
107 call assert_equal(l, lres) | 110 call assert_equal(l, lres) |
108 call assert_equal(s, sres) | 111 call assert_equal(s, sres) |
109 endfunc | 112 endfunc |
110 | 113 |