robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
af23d17388
master
1" Tests for :undo 2 3func Test_ex_undo () 4new ex-undo 5setlocal ul = 10 6exe "normal ione\n\<Esc>" 7setlocal ul = 10 8exe "normal itwo\n\<Esc>" 9setlocal ul = 10 10exe "normal ithree\n\<Esc>" 11call assert_equal ( 4 , line ( '$' )) 12undo 13call assert_equal ( 3 , line ( '$' )) 14undo 1 15call assert_equal ( 2 , line ( '$' )) 16undo 0 17call assert_equal ( 1 , line ( '$' )) 18quit ! 19endfunc