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 /src/testdir/test_assert.vim | |
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 'src/testdir/test_assert.vim')
-rw-r--r-- | src/testdir/test_assert.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_assert.vim b/src/testdir/test_assert.vim index 762f12ff5..5037d87b8 100644 --- a/src/testdir/test_assert.vim +++ b/src/testdir/test_assert.vim @@ -81,6 +81,10 @@ func Test_assert_equalfile() call assert_match("difference at byte 4", v:errors[0]) call remove(v:errors, 0) + call assert_equal(1, assert_equalfile('Xone', 'Xtwo', 'a message')) + call assert_match("a message: difference at byte 4", v:errors[0]) + call remove(v:errors, 0) + call delete('Xone') call delete('Xtwo') endfunc |