1 2func Test_yank_put_clipboard() 3 new 4 call setline(1, ['a', 'b', 'c']) 5 set clipboard=unnamed 6 g/^/normal yyp 7 call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6)) 8 9 set clipboard& 10 bwipe! 11endfunc 12 13func Test_nested_global() 14 new 15 call setline(1, ['nothing', 'found', 'found bad', 'bad']) 16 call assert_fails('g/found/3v/bad/s/^/++/', 'E147') 17 g/found/v/bad/s/^/++/ 18 call assert_equal(['nothing', '++found', 'found bad', 'bad'], getline(1, 4)) 19 bwipe! 20endfunc 21