diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-10-26 02:30:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-26 02:30:40 -0700 |
commit | 19ba36d0e1bb4ef28f8aa92c7386345fbcf78cf2 (patch) | |
tree | f8e95ef890acd6ee9fecb9d56a1093dfc4d1df8a /test/functional/lua/treesitter_spec.lua | |
parent | 91b831da8b00319afba6a90b439d70960f90c3f7 (diff) | |
parent | 316c29bbf36d3d36c459b7c955d921b29ca659d0 (diff) | |
download | rneovim-19ba36d0e1bb4ef28f8aa92c7386345fbcf78cf2.tar.gz rneovim-19ba36d0e1bb4ef28f8aa92c7386345fbcf78cf2.tar.bz2 rneovim-19ba36d0e1bb4ef28f8aa92c7386345fbcf78cf2.zip |
Merge #11271 from h-michael/add-more-info
lua/vim.shared: improve some validation messages
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 |