diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-10-26 01:30:58 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-10-26 02:00:58 -0700 |
commit | 316c29bbf36d3d36c459b7c955d921b29ca659d0 (patch) | |
tree | f8e95ef890acd6ee9fecb9d56a1093dfc4d1df8a /test/functional/lua/treesitter_spec.lua | |
parent | 996a057fb9b4b7d791adad19f07b2f9c53a88ab5 (diff) | |
download | rneovim-316c29bbf36d3d36c459b7c955d921b29ca659d0.tar.gz rneovim-316c29bbf36d3d36c459b7c955d921b29ca659d0.tar.bz2 rneovim-316c29bbf36d3d36c459b7c955d921b29ca659d0.zip |
test/pcall_err(): truncate full paths, omit linenr
ref #11271
Diffstat (limited to 'test/functional/lua/treesitter_spec.lua')
-rw-r--r-- | test/functional/lua/treesitter_spec.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/functional/lua/treesitter_spec.lua b/test/functional/lua/treesitter_spec.lua index 700e4599f2..5a53ca1425 100644 --- a/test/functional/lua/treesitter_spec.lua +++ b/test/functional/lua/treesitter_spec.lua @@ -15,9 +15,7 @@ before_each(clear) describe('treesitter API', function() -- error tests not requiring a parser library it('handles missing language', function() - local path_pat = 'Error executing lua: '..(iswin() and '.+\\vim\\' or '.+/vim/') - - matches(path_pat..'treesitter.lua:39: no such language: borklang', + eq('Error executing lua: .../treesitter.lua: no such language: borklang', pcall_err(exec_lua, "parser = vim.treesitter.create_parser(0, 'borklang')")) -- actual message depends on platform |