Skip to content

Commit

Permalink
IO::Path.new with wrong args must not claim it only takes named ones
Browse files Browse the repository at this point in the history
RT#127989
  • Loading branch information
zoffixznet committed Jul 18, 2016
1 parent f39436f commit 5f54695
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S32-io/io-path.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 17;
plan 18;

# L<S32::IO/IO::Path>

Expand Down Expand Up @@ -57,3 +57,7 @@ isa-ok $path.IO, IO::Path, 'IO::Path.IO returns IO::Path';
my $nul = "/foo\0bar".IO.perl;
is $nul.EVAL.perl, $nul, "does $nul roundtrip?";
}

# RT #127989
throws-like { IO::Path.new: 'foo', 'bar' }, X::Multi::NoMatch,
'IO::Path.new with wrong args must not claim it only takes named ones';

0 comments on commit 5f54695

Please sign in to comment.