Files
n8n-openai-adapter/lib/ex_unit/assertions.ex
T
2011-02-19 09:23:34 +01:00

9 lines
208 B
Elixir

module ExUnit::Assertions
def assert_raise(rescued, function)
{ 'EXIT, { rescued, _ } } = self.catch do
function()
end
% Return true to avoid nested self.catch failures
true
end
end