diff options
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_global.vim | 11 | ||||
-rw-r--r-- | src/testdir/test_substitute.vim | 4 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/testdir/test_global.vim b/src/testdir/test_global.vim index 34857b2555..0f72c3cf80 100644 --- a/src/testdir/test_global.vim +++ b/src/testdir/test_global.vim @@ -116,7 +116,16 @@ func Test_global_newline() close! endfunc -func Test_wrong_delimiter() +" Test :g with ? as delimiter. +func Test_global_question_delimiter() + new + call setline(1, ['aaaaa', 'b?bbb', 'ccccc', 'ddd?d', 'eeeee']) + g?\??delete + call assert_equal(['aaaaa', 'ccccc', 'eeeee'], getline(1, '$')) + bwipe! +endfunc + +func Test_global_wrong_delimiter() call assert_fails('g x^bxd', 'E146:') endfunc diff --git a/src/testdir/test_substitute.vim b/src/testdir/test_substitute.vim index a2367cd233..afdc104d7c 100644 --- a/src/testdir/test_substitute.vim +++ b/src/testdir/test_substitute.vim @@ -174,8 +174,8 @@ func Test_substitute_repeat() bwipe! endfunc -" Test :s with ? as separator. -func Test_substitute_question_separator() +" Test :s with ? as delimiter. +func Test_substitute_question_delimiter() new call setline(1, '??:??') %s?\?\??!!?g |