diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/Test/Execute.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/Test/Execute.pm b/t/Test/Execute.pm index 4231e9f..2513e08 100755 --- a/t/Test/Execute.pm +++ b/t/Test/Execute.pm @@ -78,6 +78,8 @@ sub run { SKIP: { skip "Expected output undefined", 1 } } elsif (ref $expected eq 'Regexp') { like ($output, $expected, "$name - output"); + } elsif (ref $expected eq 'CODE') { + ok ($expected->($output), "$name - output"); } else { is ($output, $expected, "$name - output"); } |