Closed ktalebian closed 5 years ago
That's actually a luassert
question and not busted
. But please have a look at the array
example: https://github.com/Olivine-Labs/luassert/blob/master/src/array.lua . It has exactly what you want.
Ah thank you!
I want to register a new
that(variable).*
so I can add my own assertions, for example:I was doing something like:
This does not work; how can I do register a
function
?