aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-10-04 23:22:57 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-10-04 23:25:37 +0900
commit31a29e41b0aad1c41f05754c2fff4b083cc875e9 (patch)
tree658fde12c5d4a0d012133b79912de95b5539279b
parenteeec0cab584864ea2dbd3e9fe9e4a9d6a69dbff8 (diff)
downloadrneovim-31a29e41b0aad1c41f05754c2fff4b083cc875e9.tar.gz
rneovim-31a29e41b0aad1c41f05754c2fff4b083cc875e9.tar.bz2
rneovim-31a29e41b0aad1c41f05754c2fff4b083cc875e9.zip
vim-patch:8067a64
Add missing test file. https://github.com/vim/vim/commit/8067a64852d6d134b493c5674e404225ed4bbe7d
-rw-r--r--src/nvim/testdir/test_ex_undo.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_ex_undo.vim b/src/nvim/testdir/test_ex_undo.vim
new file mode 100644
index 0000000000..44feb3680a
--- /dev/null
+++ b/src/nvim/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\<Esc>"
+ setlocal ul=10
+ exe "normal itwo\n\<Esc>"
+ setlocal ul=10
+ exe "normal ithree\n\<Esc>"
+ 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