Mercurial > vim
view src/testdir/test_global.vim @ 14995:bc0f3c4fb992 v8.1.0509
patch 8.1.0509: checking cwd not accessible fails for root
commit https://github.com/vim/vim/commit/0b38f54730c3f9835ddade01c2263ce0f56c1c0f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 3 21:47:16 2018 +0100
patch 8.1.0509: checking cwd not accessible fails for root
Problem: Checking cwd not accessible fails for root. (James McCoy)
Solution: Skip this part of the test for root. (closes https://github.com/vim/vim/issues/3595)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Nov 2018 22:00:06 +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