Add regexp comparison support on errmsg parameter on throws_ok function
stephane-klein opened this issue · 2 comments
stephane-klein commented
What do you think to add regexp comparison support on errmsg
parameter on throws_ok
function.
For instance, I would write:
SELECT throws_ok(
$$
SELECT * FROM my_function()
$$,
'P0001',
'Internal error: planned execution datetime range .* should be planned after the notice period .*',
'should test entry notice period is not correct'
);
Best regards,
Stéphane
Its-Alex commented
Up?
theory commented
There's throws_matching()
.