blob: 48a87df0242be77bd00c1976a0ef55754339992b [file] [log] [blame]
Bram Moolenaar8067a642016-03-15 17:52:10 +01001" Tests for :undo
2
3func 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!
19endfunc
Bram Moolenaar6d91bcb2020-08-12 18:50:36 +020020
21" vim: shiftwidth=2 sts=2 expandtab