aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-24 09:31:46 +0200
committerGitHub <noreply@github.com>2019-07-24 09:31:46 +0200
commit451f6046b0d4fc039894ed4a40d791d3098dcd78 (patch)
treed6eb8867b2f9335e31bdec4c8d9611daffaa1c2c
parent733e1a0e7397a25f96f7d27983c69b883280c35e (diff)
downloadrneovim-451f6046b0d4fc039894ed4a40d791d3098dcd78.tar.gz
rneovim-451f6046b0d4fc039894ed4a40d791d3098dcd78.tar.bz2
rneovim-451f6046b0d4fc039894ed4a40d791d3098dcd78.zip
tests: AppVeyor: fix test/functional/ex_cmds/arg_spec.lua (#10598)
For unknown reasons it does not have the trailing space in `:args` output there anymore: [ FAILED ] test/functional\ex_cmds\arg_spec.lua @ 11: :argument does not restart :terminal buffer test/functional\ex_cmds\arg_spec.lua:25: Expected objects to be the same. Passed in: (string) ' [term://.//4552:C:\Windows\system32\cmd.exe]' Expected: (string) ' [term://.//4552:C:\Windows\system32\cmd.exe] ' stack traceback: test/functional\ex_cmds\arg_spec.lua:25: in function <test/functional\ex_cmds\arg_spec.lua:11> The test is not about that though, and this can be made less strict by using `trim()`. The new test in `test_arglist.vim` for no trailing newline is OK, and contains trailing spaces. So this is likely due to the length of it exceeding the column width already.
-rw-r--r--test/functional/ex_cmds/arg_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/arg_spec.lua b/test/functional/ex_cmds/arg_spec.lua
index 6d31f05c2a..4dea50b53e 100644
--- a/test/functional/ex_cmds/arg_spec.lua
+++ b/test/functional/ex_cmds/arg_spec.lua
@@ -22,7 +22,7 @@ describe(":argument", function()
local bufname_after = funcs.bufname("%")
local bufnr_after = funcs.bufnr("%")
- eq("\n["..bufname_before.."] ", helpers.eval('execute("args")'))
+ eq("["..bufname_before.."]", helpers.eval('trim(execute("args"))'))
ok(funcs.line('$') > 1)
eq(bufname_before, bufname_after)
eq(bufnr_before, bufnr_after)