Skip to content

Commit

Permalink
test: Correct version number check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed May 25, 2024
1 parent 4a8c15f commit ee438c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ describe("handle treesitter blocks", function()
end)

if
vim.version.gt(vim.version(), { 0, 8, 0 })
and vim.version.lt(vim.version(), { 0, 10, 0 })
vim.fn.has("nvim-0.10") == 1
or (vim.fn.has("nvim-0.8") == 1 and vim.fn.has("nvim-0.9") ~= 1)
then
-- These tests seem to fail on NeoVim 0.9.x - I think there's some kind
-- of parser issue
Expand Down

0 comments on commit ee438c3

Please sign in to comment.