Skip to content

Commit

Permalink
Add vusted.assert.register for shorthand
Browse files Browse the repository at this point in the history
notomo committed Oct 9, 2023
1 parent 0177391 commit 2bc6818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/vusted/assert.lua
Original file line number Diff line number Diff line change
@@ -63,4 +63,8 @@ function Assert.register_same(self, get_actual)
end)
end

function M.register(name, fn)
Assert.create(name):register(fn)
end

return M

0 comments on commit 2bc6818

Please sign in to comment.