# HG changeset patch # User Christian Brabandt # Date 1458061214 -3600 # Node ID 52b13e25b21de942e5c67216618d7c67f22de74c # Parent b66ddd263774f9d44d782ee0c183ca525bf391ef commit https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d Author: Bram Moolenaar Date: Tue Mar 15 17:52:10 2016 +0100 Add missing test file. diff --git a/src/testdir/test_ex_undo.vim b/src/testdir/test_ex_undo.vim new file mode 100644 --- /dev/null +++ b/src/testdir/test_ex_undo.vim @@ -0,0 +1,19 @@ +" Tests for :undo + +func Test_ex_undo() + new ex-undo + setlocal ul=10 + exe "normal ione\n\" + setlocal ul=10 + exe "normal itwo\n\" + setlocal ul=10 + exe "normal ithree\n\" + call assert_equal(4, line('$')) + undo + call assert_equal(3, line('$')) + undo 1 + call assert_equal(2, line('$')) + undo 0 + call assert_equal(1, line('$')) + quit! +endfunc