aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-07-12 10:17:30 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-07-19 11:40:34 -0400
commit93f2dc0d034677a47c9ba7032b3537c91a718096 (patch)
tree0483af40f89a2f15118a28cffadb43ec07337a2d /src/nvim/testdir
parentab69ea26dccf4760a60882059a69b9245f767e2c (diff)
downloadrneovim-93f2dc0d034677a47c9ba7032b3537c91a718096.tar.gz
rneovim-93f2dc0d034677a47c9ba7032b3537c91a718096.tar.bz2
rneovim-93f2dc0d034677a47c9ba7032b3537c91a718096.zip
vim-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) https://github.com/vim/vim/commit/fb517bac2384798bb5142ed1f75f965f93984c0a
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_assert.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_assert.vim b/src/nvim/testdir/test_assert.vim
index 4cc90eca7a..86993e0acc 100644
--- a/src/nvim/testdir/test_assert.vim
+++ b/src/nvim/testdir/test_assert.vim
@@ -31,6 +31,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