diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-11-13 14:52:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 05:52:19 -0800 |
commit | 736c36c02f316c979da363c5120495179a2b6c2a (patch) | |
tree | 97015d6701788a2c0b37b92c25033fff4f779ab9 /test/functional/treesitter | |
parent | 0a96f18ed774ebc27db50eba4d8a4437e970a331 (diff) | |
download | rneovim-736c36c02f316c979da363c5120495179a2b6c2a.tar.gz rneovim-736c36c02f316c979da363c5120495179a2b6c2a.tar.bz2 rneovim-736c36c02f316c979da363c5120495179a2b6c2a.zip |
test: introduce skip() #21010
This is essentially a convenience wrapper around the `pending()`
function, similar to `skip_fragile()` but more general-purpose.
Also remove `pending_win32` function as it can be replaced by
`skip(iswin())`.
Diffstat (limited to 'test/functional/treesitter')
-rw-r--r-- | test/functional/treesitter/parser_spec.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua index ccbd55df0e..22348c7e20 100644 --- a/test/functional/treesitter/parser_spec.lua +++ b/test/functional/treesitter/parser_spec.lua @@ -5,6 +5,8 @@ local eq = helpers.eq local insert = helpers.insert local exec_lua = helpers.exec_lua local feed = helpers.feed +local iswin = helpers.iswin +local skip = helpers.skip before_each(clear) @@ -12,7 +14,7 @@ describe('treesitter parser API', function() clear() it('parses buffer', function() - if helpers.pending_win32(pending) then return end + skip(iswin()) insert([[ int main() { @@ -684,7 +686,7 @@ int x = INT_MAX; end) it("should not inject bad languages", function() - if helpers.pending_win32(pending) then return end + skip(iswin()) exec_lua([=[ vim.treesitter.add_directive("inject-bad!", function(match, _, _, pred, metadata) metadata.language = "{" |