test: fix tests for USD backend

This commit is contained in:
Steven Arcangeli 2023-05-17 01:01:24 -07:00
parent 65399d83db
commit e16f739411
2 changed files with 25 additions and 23 deletions

View file

@ -7,6 +7,8 @@ vim.bo.swapfile = false
vim.filetype.add({
extension = {
norg = "norg", -- Neovim doesn't have built-in norg filetype detection
usd = "usd", -- Neovim doesn't have built-in USD filetype detection
usda = "usd", -- Neovim doesn't have built-in USD filetype detection
},
})

View file

@ -9,24 +9,24 @@ describe("treesitter USD", function()
level = 0,
lnum = 3,
col = 0,
end_lnum = 3,
end_col = 21,
end_lnum = 21,
end_col = 1,
children = {
{
kind = "Class",
name = "child",
level = 1,
lnum = 7,
col = 5,
end_lnum = 7,
end_col = 21,
col = 4,
end_lnum = 20,
end_col = 5,
children = {
{
kind = "Property",
name = "foo:xformOp:rotateXYZ",
level = 2,
lnum = 9,
col = 9,
col = 8,
end_lnum = 9,
end_col = 58,
},
@ -35,7 +35,7 @@ describe("treesitter USD", function()
name = "translate",
level = 2,
lnum = 10,
col = 9,
col = 8,
end_lnum = 10,
end_col = 48,
},
@ -44,7 +44,7 @@ describe("treesitter USD", function()
name = "thing",
level = 2,
lnum = 11,
col = 9,
col = 8,
end_lnum = 11,
end_col = 32,
},
@ -53,44 +53,44 @@ describe("treesitter USD", function()
name = "variants",
level = 2,
lnum = 13,
col = 9,
end_lnum = 13,
end_col = 31,
col = 8,
end_lnum = 19,
end_col = 9,
children = {
{
kind = "EnumMember",
name = "default",
level = 3,
lnum = 14,
col = 13,
end_lnum = 14,
end_col = 21,
col = 12,
end_lnum = 15,
end_col = 13,
},
{
kind = "EnumMember",
name = "one",
level = 3,
lnum = 15,
col = 13,
end_lnum = 15,
end_col = 21,
lnum = 16,
col = 12,
end_lnum = 18,
end_col = 13,
children = {
{
kind = "Property",
name = "xformOp:translate",
level = 4,
lnum = 17,
col = 17,
col = 16,
end_lnum = 17,
end_col = 56,
},
}
},
},
}
},
},
}
},
},
}
},
},
})
end)