theory/pgtap

Add regexp comparison support on errmsg parameter on throws_ok function

stephane-klein opened this issue · 2 comments

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

Up?