Mercurial > vim
view src/testdir/test_blockedit.vim @ 13796:87012d2b17b5 v8.0.1770
patch 8.0.1770: assert functions don't return anything
commit https://github.com/vim/vim/commit/65a5464985f980d2bbbf4e14d39d416dce065ec7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 28 16:56:53 2018 +0200
patch 8.0.1770: assert functions don't return anything
Problem: Assert functions don't return anything.
Solution: Return non-zero when the assertion fails.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 28 Apr 2018 17:00:06 +0200 |
parents | 4faf77b96432 |
children | 7ed76dcf0d94 |
line wrap: on
line source
" Test for block inserting " " TODO: rewrite test39.in into this new style test func Test_blockinsert_indent() new filetype plugin indent on setlocal sw=2 et ft=vim call setline(1, ['let a=[', ' ''eins'',', ' ''zwei'',', ' ''drei'']']) call cursor(2, 3) exe "norm! \<c-v>2jI\\ \<esc>" call assert_equal(['let a=[', ' \ ''eins'',', ' \ ''zwei'',', ' \ ''drei'']'], \ getline(1,'$')) " reset to sane state filetype off bwipe! endfunc " vim: shiftwidth=2 sts=2 expandtab