aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/expand_spec.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-08-08 16:07:40 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-10-03 20:06:31 +0100
commit6110480c290011d96af37c0cba1e7309ef645efb (patch)
treeddc3d4e81caaf9429151850086ec0dc87c74aa0d /test/functional/legacy/expand_spec.lua
parent0193b3a3917d426bb5798759c3629e9d4f3eb7a8 (diff)
downloadrneovim-6110480c290011d96af37c0cba1e7309ef645efb.tar.gz
rneovim-6110480c290011d96af37c0cba1e7309ef645efb.tar.bz2
rneovim-6110480c290011d96af37c0cba1e7309ef645efb.zip
feat(eval/method): partially port v8.1.1921
Adds method call support for all functions in the patch, but it cannot be fully ported due to missing tests for: - filereadable(): requires v8.1.1378 for Test_delete_rf(), but there appears to have been some trouble porting it. (#12784) - confirm(): requires v8.1.0832 for Test_confirm() and v8.1.0815 for feedkeys()'s "L" flag. (I did attempt to port the test using nvim_input() instead, but seems that input handling for confirm() doesn't work in --headless mode?) Note that confirm() was actually added as a method in v8.1.1915. Uncomment use of method call syntax in Test_Executable() previously included instead from v8.2.2259.
Diffstat (limited to 'test/functional/legacy/expand_spec.lua')
-rw-r--r--test/functional/legacy/expand_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/legacy/expand_spec.lua b/test/functional/legacy/expand_spec.lua
index f238128b31..cd3713eabe 100644
--- a/test/functional/legacy/expand_spec.lua
+++ b/test/functional/legacy/expand_spec.lua
@@ -81,7 +81,7 @@ describe('expand file name', function()
call assert_equal('e Xfile1', expandcmd('e %'))
edit Xfile2
edit Xfile1
- call assert_equal('e Xfile2', expandcmd('e #'))
+ call assert_equal('e Xfile2', 'e #'->expandcmd())
edit Xfile2
edit Xfile3
edit Xfile4