view src/testdir/test_registers.vim @ 12899:9e04de2aa738 v8.0.1326

patch 8.0.1326: largefile test fails on CI, glob test on MS-Windows commit https://github.com/vim/vim/commit/6e77df2d8555ade4470e566011603ae40f1f0f3a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 21 11:43:08 2017 +0100 patch 8.0.1326: largefile test fails on CI, glob test on MS-Windows Problem: Largefile test fails on CI, glob test on MS-Windows. Solution: Remove largefile test from list of all tests. Don't run Test_glob() on non-unix systems. More cleanup. (Yegappan Lakshmanan, closes #2354)
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Nov 2017 11:45:06 +0100
parents b9928ef8632f
children 536874138ecd
line wrap: on
line source


func Test_yank_shows_register()
    enew
    set report=0
    call setline(1, ['foo', 'bar'])
    " Line-wise
    exe 'norm! yy'
    call assert_equal('1 line yanked', v:statusmsg)
    exe 'norm! "zyy'
    call assert_equal('1 line yanked into "z', v:statusmsg)
    exe 'norm! yj'
    call assert_equal('2 lines yanked', v:statusmsg)
    exe 'norm! "zyj'
    call assert_equal('2 lines yanked into "z', v:statusmsg)

    " Block-wise
    exe "norm! \<C-V>y"
    call assert_equal('block of 1 line yanked', v:statusmsg)
    exe "norm! \<C-V>\"zy"
    call assert_equal('block of 1 line yanked into "z', v:statusmsg)
    exe "norm! \<C-V>jy"
    call assert_equal('block of 2 lines yanked', v:statusmsg)
    exe "norm! \<C-V>j\"zy"
    call assert_equal('block of 2 lines yanked into "z', v:statusmsg)

    bwipe!
endfunc