Skip to content

Commit 6ac1f27

Browse files
committed
Test Range.new with wrong args
Does not claim it takes only named args Rakudo fix: rakudo/rakudo@1ea3297b21
1 parent 0a6daaa commit 6ac1f27

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

S02-types/range.t

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

33
use Test;
44

5-
plan 189;
5+
plan 190;
66

77
# basic Range
88
# L<S02/Immutable types/A pair of Ordered endpoints>
@@ -435,4 +435,10 @@ subtest 'no .int-bounds for Infs and NaN as Range endpoints' => {
435435
'we can get int-bounds from non-int range with `0` end-point';
436436
}
437437

438+
{
439+
try Range.new: 'meow', 'meow', 'meow', :meow, 'meow';
440+
cmp-ok $!, '!~~', X::Constructor::Positional,
441+
'Range.new with wrong args does not claim it takes only named args';
442+
}
443+
438444
# vim:set ft=perl6

0 commit comments

Comments
 (0)