From 8a14750dd32290da1d1a56ee70481190ae5ee299 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 17 Dec 2015 22:12:02 -0500 Subject: test: convert test_marks.in. vim-patch:35e7594 https://github.com/vim/vim/commit/35e7594dd429f7a8a06cefd61c3e8d48b9bd74e2 "Add missing test files from 7.4.634 to the repository." The discrepancy between the expected getpos() result of the old test [0, 15, 2, 0] and the converted test [0, 3, 2, 0] is just a matter of how the buffer is constructed: in the old Vim test the buffer has a bunch of junk at the top. The central purpose of the test is to verify that the getpost("'a") does *not* return [0, 0, 0, 0]. --- src/nvim/testdir/test_marks.in | 34 ---------------------------------- src/nvim/testdir/test_marks.ok | 16 ---------------- 2 files changed, 50 deletions(-) delete mode 100644 src/nvim/testdir/test_marks.in delete mode 100644 src/nvim/testdir/test_marks.ok (limited to 'src') diff --git a/src/nvim/testdir/test_marks.in b/src/nvim/testdir/test_marks.in deleted file mode 100644 index 23c2fb65fe..0000000000 --- a/src/nvim/testdir/test_marks.in +++ /dev/null @@ -1,34 +0,0 @@ -Tests for marks. - -STARTTEST -:so small.vim -:" test that a deleted mark is restored after delete-undo-redo-undo -:/^\t/+1 -:set nocp viminfo+=nviminfo -madduu -:let a = string(getpos("'a")) -:$put ='Mark after delete-undo-redo-undo: '.a -:'' -ENDTEST - - textline A - textline B - textline C - -STARTTEST -:" test that CTRL-A and CTRL-X updates last changed mark '[, ']. -:/^123/ -:execute "normal! \`[v`]rAjwvjw\`[v`]rX" -ENDTEST - -CTRL-A CTRL-X: -123 123 123 -123 123 123 -123 123 123 - -STARTTEST -:g/^STARTTEST/.,/^ENDTEST/d -:wq! test.out -ENDTEST - -Results: diff --git a/src/nvim/testdir/test_marks.ok b/src/nvim/testdir/test_marks.ok deleted file mode 100644 index e6c02ee7b0..0000000000 --- a/src/nvim/testdir/test_marks.ok +++ /dev/null @@ -1,16 +0,0 @@ -Tests for marks. - - - textline A - textline B - textline C - - -CTRL-A CTRL-X: -AAA 123 123 -123 XXXXXXX -XXX 123 123 - - -Results: -Mark after delete-undo-redo-undo: [0, 15, 2, 0] -- cgit