Mercurial > vim
diff runtime/doc/testing.txt @ 20679:1af1d8ff2aa8 v8.2.0893
patch 8.2.0893: assert_equalfile() does not take a third argument
Commit: https://github.com/vim/vim/commit/fb517bac2384798bb5142ed1f75f965f93984c0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 3 19:55:35 2020 +0200
patch 8.2.0893: assert_equalfile() does not take a third argument
Problem: Assert_equalfile() does not take a third argument.
Solution: Implement the third argument. (Gary Johnson)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 03 Jun 2020 20:00:04 +0200 |
parents | 1908e92b02fd |
children | 661eb972cb22 |
line wrap: on
line diff
--- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -263,9 +263,8 @@ assert_equal({expected}, {actual} [, {ms Can also be used as a |method|: > mylist->assert_equal([1, 2, 3]) - < *assert_equalfile()* -assert_equalfile({fname-one}, {fname-two}) +assert_equalfile({fname-one}, {fname-two} [, {msg}]) When the files {fname-one} and {fname-two} do not contain exactly the same text an error message is added to |v:errors|. Also see |assert-return|. @@ -276,7 +275,6 @@ assert_equalfile({fname-one}, {fname-two Can also be used as a |method|: > GetLog()->assert_equalfile('expected.log') - assert_exception({error} [, {msg}]) *assert_exception()* When v:exception does not contain the string {error} an error message is added to |v:errors|. Also see |assert-return|.