Mercurial > vim
view src/testdir/test_global.vim @ 14897:0c845463a0db v8.1.0460
patch 8.1.0460: assert_fails() does not take a message argument
commit https://github.com/vim/vim/commit/1307d1c003b01b4f67524c95feb07c3d91c7c428
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 7 20:16:49 2018 +0200
patch 8.1.0460: assert_fails() does not take a message argument
Problem: assert_fails() does not take a message argument
Solution: Add the argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Oct 2018 20:30:06 +0200 |
parents | 8e5ec22db3d8 |
children | b8fd7364befd |
line wrap: on
line source
func Test_yank_put_clipboard() new call setline(1, ['a', 'b', 'c']) set clipboard=unnamed g/^/normal yyp call assert_equal(['a', 'a', 'b', 'b', 'c', 'c'], getline(1, 6)) set clipboard& bwipe! endfunc func Test_nested_global() new call setline(1, ['nothing', 'found', 'found bad', 'bad']) call assert_fails('g/found/3v/bad/s/^/++/', 'E147') g/found/v/bad/s/^/++/ call assert_equal(['nothing', '++found', 'found bad', 'bad'], getline(1, 4)) bwipe! endfunc