Skip to content

Commit

Permalink
fixup! added file group
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Oct 3, 2024
1 parent a9a09ab commit 630957f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/verilator_spec.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
describe('linter.verilator', function()
it('can parse the output', function()
local parser = require('lint.linters.verilator').parser
local bufnr = vim.uri_to_bufnr('file:///t.v')
local result = parser([[
%Warning-DECLFILENAME: t.v:24:8: Filename 't' does not match MODULE name: 'uart'
24 | module uart
Expand Down Expand Up @@ -30,7 +31,7 @@ describe('linter.verilator', function()
64 | uart_tx
| ^~~~~~~
%Error: Exiting due to 3 error(s), 3 warning(s)
]], vim.api.nvim_get_current_buf())
]], bufnr, '')
assert.are.same(6, #result)

local expected = {
Expand Down Expand Up @@ -66,5 +67,5 @@ describe('linter.verilator', function()
},
}
assert.are.same(expected, result[5])
end)
end)
end)
end)

0 comments on commit 630957f

Please sign in to comment.