comparison src/testdir/test_global.vim @ 19471:cb73f4ae6b7c v8.2.0293

patch 8.2.0293: various Ex commands not sufficiently tested Commit: https://github.com/vim/vim/commit/818fc9ad143911b2faa0d7cee86724aa70a02080 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 21 17:54:45 2020 +0100 patch 8.2.0293: various Ex commands not sufficiently tested Problem: Various Ex commands not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5673)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Feb 2020 18:00:05 +0100
parents 1b02482e6a61
children 0208534b8a84
comparison
equal deleted inserted replaced
19470:ddc2e7caff46 19471:cb73f4ae6b7c
53 call assert_notequal('', v:statusmsg) 53 call assert_notequal('', v:statusmsg)
54 54
55 close! 55 close!
56 endfunc 56 endfunc
57 57
58 " Test for global command with newline character
59 func Test_global_newline()
60 new
61 call setline(1, ['foo'])
62 exe "g/foo/s/f/h/\<NL>s/o$/w/"
63 call assert_equal('how', getline(1))
64 call setline(1, ["foo\<NL>bar"])
65 exe "g/foo/s/foo\\\<NL>bar/xyz/"
66 call assert_equal('xyz', getline(1))
67 close!
68 endfunc
69
58 " vim: shiftwidth=2 sts=2 expandtab 70 " vim: shiftwidth=2 sts=2 expandtab