Skip to content

Commit 34b31b2

Browse files
committed
attempting to create Proc::Async with wrong arguments throws
1 parent 8e1a1cc commit 34b31b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S17-procasync/basic.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 31;
5+
plan 32;
66

77
my $pc = $*DISTRO.is-win
88
?? Proc::Async.new( 'cmd', </c echo Hello World> )
@@ -88,3 +88,6 @@ is $stderr, '', 'got correct STDERR';
8888
[$*EXECUTABLE, "-e", "exit"],
8989
'Proc returned from .start has correct .command';
9090
}
91+
92+
throws-like { Proc::Async.new }, X::Multi::NoMatch,
93+
'attempting to create Proc::Async with wrong arguments throws';

0 commit comments

Comments
 (0)