diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-07 20:46:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-07 20:46:39 +0200 |
commit | 53f1673cd909eb1c809c6a9086e3d104a0df9bed (patch) | |
tree | 99ba38cb528eafc2b79ffc13e743da43ea7e9f8e /src/testdir/test_smartindent.vim | |
parent | 1b0c1d050e28f351650c0c84e234fd24f12e5e29 (diff) | |
download | vim-git-53f1673cd909eb1c809c6a9086e3d104a0df9bed.tar.gz |
patch 7.4.2343v7.4.2343
Problem: Too many old file tests.
Solution: Turn several into new style tests. (Yegappan Lakshmanan)
Diffstat (limited to 'src/testdir/test_smartindent.vim')
-rw-r--r-- | src/testdir/test_smartindent.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_smartindent.vim b/src/testdir/test_smartindent.vim new file mode 100644 index 000000000..d00eac979 --- /dev/null +++ b/src/testdir/test_smartindent.vim @@ -0,0 +1,14 @@ + +" 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 |