Mercurial > vim
view src/testdir/test_global.vim @ 19029:8aa4ba1f9345 v8.2.0075
patch 8.2.0075: Python 3 unicode test still sometimes fails
Commit: https://github.com/vim/vim/commit/2466aea508f22d44099d54ed6d15c0a1d90f8d6e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 1 17:09:11 2020 +0100
patch 8.2.0075: Python 3 unicode test still sometimes fails
Problem: Python 3 unicode test still sometimes fails.
Solution: Skip the test when 'termencoding' is not empty.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Jan 2020 17:15:03 +0100 |
parents | 8e5ec22db3d8 |
children | b8fd7364befd |
line wrap: on
line source
func Test_yank_put_clipboard() new call setline(1, ['a', 'b', 'c']) set clipboard=unnamed g/^/normal yyp call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6)) set clipboard& bwipe! endfunc func Test_nested_global() new call setline(1, ['nothing', 'found', 'found bad', 'bad']) call assert_fails('g/found/3v/bad/s/^/++/', 'E147') g/found/v/bad/s/^/++/ call assert_equal(['nothing', '++found', 'found bad', 'bad'], getline(1, 4)) bwipe! endfunc