Mercurial > vim
comparison src/testdir/test_ex_undo.vim @ 8570:52b13e25b21d
commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 15 17:52:10 2016 +0100
Add missing test file.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 15 Mar 2016 18:00:14 +0100 |
parents | |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
8569:b66ddd263774 | 8570:52b13e25b21d |
---|---|
1 " Tests for :undo | |
2 | |
3 func Test_ex_undo() | |
4 new ex-undo | |
5 setlocal ul=10 | |
6 exe "normal ione\n\<Esc>" | |
7 setlocal ul=10 | |
8 exe "normal itwo\n\<Esc>" | |
9 setlocal ul=10 | |
10 exe "normal ithree\n\<Esc>" | |
11 call assert_equal(4, line('$')) | |
12 undo | |
13 call assert_equal(3, line('$')) | |
14 undo 1 | |
15 call assert_equal(2, line('$')) | |
16 undo 0 | |
17 call assert_equal(1, line('$')) | |
18 quit! | |
19 endfunc |