diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-03 19:55:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-03 19:55:35 +0200 |
commit | fb517bac2384798bb5142ed1f75f965f93984c0a (patch) | |
tree | 44d7bd1442dfa1af46844cbe84a099bd87eb2007 /runtime | |
parent | c5acc0f7fed6b061d994fc5ac660dcc0312750bd (diff) | |
download | vim-git-fb517bac2384798bb5142ed1f75f965f93984c0a.tar.gz |
patch 8.2.0893: assert_equalfile() does not take a third argumentv8.2.0893
Problem: Assert_equalfile() does not take a third argument.
Solution: Implement the third argument. (Gary Johnson)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 5 | ||||
-rw-r--r-- | runtime/doc/testing.txt | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 7c4c59a8c..62a5172b9 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2324,11 +2324,12 @@ argidx() Number current index in the argument list arglistid([{winnr} [, {tabnr}]]) Number argument list id argv({nr} [, {winid}]) String {nr} entry of the argument list argv([-1, {winid}]) List the argument list +asin({expr}) Float arc sine of {expr} assert_beeps({cmd}) Number assert {cmd} causes a beep assert_equal({exp}, {act} [, {msg}]) Number assert {exp} is equal to {act} -assert_equalfile({fname-one}, {fname-two}) - Number assert file contents is equal +assert_equalfile({fname-one}, {fname-two} [, {msg}]) + Number assert file contents are equal assert_exception({error} [, {msg}]) Number assert {error} is in v:exception assert_fails({cmd} [, {error} [, {msg}]]) diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index 9c87cba64..19fb32174 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -263,9 +263,8 @@ assert_equal({expected}, {actual} [, {msg}]) 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|. |