Mercurial > vim
comparison src/testdir/test_utf8.vim @ 17916:2e53305f2239 v8.1.1954
patch 8.1.1954: more functions can be used as a method
Commit: https://github.com/vim/vim/commit/02b31110d31e995326080807716e79e38fe501df
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 31 22:16:38 2019 +0200
patch 8.1.1954: more functions can be used as a method
Problem: More functions can be used as a method.
Solution: Allow more functions to be used as a method.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 31 Aug 2019 22:30:03 +0200 |
parents | 219c58b3879c |
children | 0dcc2ee838dd |
comparison
equal
deleted
inserted
replaced
17915:50ad0353c88a | 17916:2e53305f2239 |
---|---|
75 | 75 |
76 " With composing characters | 76 " With composing characters |
77 let s = "\u304b\u3099\u3044" | 77 let s = "\u304b\u3099\u3044" |
78 let l = [0x304b, 0x3099, 0x3044] | 78 let l = [0x304b, 0x3099, 0x3044] |
79 call assert_equal(l, str2list(s, 1)) | 79 call assert_equal(l, str2list(s, 1)) |
80 call assert_equal(s, list2str(l, 1)) | 80 call assert_equal(s, l->list2str(1)) |
81 if &enc ==# 'utf-8' | 81 if &enc ==# 'utf-8' |
82 call assert_equal(str2list(s), str2list(s, 1)) | 82 call assert_equal(str2list(s), str2list(s, 1)) |
83 call assert_equal(list2str(l), list2str(l, 1)) | 83 call assert_equal(list2str(l), list2str(l, 1)) |
84 endif | 84 endif |
85 | 85 |