diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-20 17:09:32 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-11-24 17:29:55 +0100 |
| commit | b004d74bb53430aab1f98e4ecd38a3be6ecd0ae3 (patch) | |
| tree | 83345767a0d60dfe3290e52dd8824618aa86dbf7 | |
| parent | 771abaf53198a8b1aebff3de75ed2919b83ced45 (diff) | |
Add assert that "highlight-assertions" is executable
| -rw-r--r-- | tests/query/highlights_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/query/highlights_spec.lua b/tests/query/highlights_spec.lua index c0b6a782..ca573e08 100644 --- a/tests/query/highlights_spec.lua +++ b/tests/query/highlights_spec.lua @@ -8,6 +8,12 @@ local function check_assertions(file) local buf = vim.fn.bufadd(file) vim.fn.bufload(file) local lang = parsers.get_buf_lang(buf) + assert.same( + 1, + vim.fn.executable "highlight-assertions", + '"highlight-assertions" not executable!' + .. ' Get it via "cargo install --git https://github.com/theHamsta/highlight-assertions"' + ) local assertions = vim.fn.json_decode( vim.fn.system( "highlight-assertions -p '" .. utils.get_parser_install_dir() .. "/" .. lang .. ".so'" .. " -s '" .. file .. "'" |
