Mercurial > vim
view src/testdir/test_smartindent.vim @ 11603:4e66689bced6 v8.0.0684
patch 8.0.0684: old style tests are not nice
commit https://github.com/vim/vim/commit/28b238225ae618f63cfe5d3d723120960a941da7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 27 18:29:17 2017 +0200
patch 8.0.0684: old style tests are not nice
Problem: Old style tests are not nice.
Solution: Turn two tests into new style. (pschuh, closes https://github.com/vim/vim/issues/1797)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 27 Jun 2017 18:30:03 +0200 |
parents | eb9a7296ae9f |
children | 268b1036cd17 |
line wrap: on
line source
" Tests for not doing smart indenting when it isn't set. function! Test_nosmartindent() new call append(0, [" some test text", \ " test text", \ "test text", \ " test text"]) set nocindent nosmartindent autoindent exe "normal! gg/some\<CR>" exe "normal! 2cc#test\<Esc>" call assert_equal(" #test", getline(1)) enew! | close endfunction