Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #9 from syohex/coercive-type
Browse files Browse the repository at this point in the history
Fix coercive types declaration
  • Loading branch information
Filip Sergot committed Dec 25, 2015
2 parents ff842b9 + fabf269 commit baf8dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Test/IO/Capture.pm
Expand Up @@ -3,13 +3,13 @@ use IO::Capture::Simple;

unit module Test::IO::Capture;

sub prints-stdout-ok (Callable $code, Str $expected, $reason = '')
sub prints-stdout-ok (Callable $code, Str() $expected, $reason = '')
is export {
my $out = capture_stdout $code;
is $out, $expected, $reason;
}

sub prints-stderr-ok (Callable $code, Str $expected, $reason = '')
sub prints-stderr-ok (Callable $code, Str() $expected, $reason = '')
is export {
my $out = capture_stderr $code;
is $out, $expected, $reason;
Expand Down

0 comments on commit baf8dcf

Please sign in to comment.