Skip to content

Commit

Permalink
Merge pull request #278 from dogbert17/test-rt-131272
Browse files Browse the repository at this point in the history
Added tests for RT #131272
  • Loading branch information
dogbert17 committed Jul 5, 2017
2 parents d05653a + e4302e5 commit 68d34de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion S02-types/bag.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 225;
plan 226;

sub showkv($x) {
$x.keys.sort.map({ $^k ~ ':' ~ $x{$k} }).join(' ')
Expand Down Expand Up @@ -316,6 +316,8 @@ sub showkv($x) {

@a = $b.pick(-2.5);
is +@a, 0, '.pick(<negative number>) does not return any items';

lives-ok { @a = $b.pick(2.5) }, ".pick int-ifies arg"; # RT #131272
}

{
Expand Down
4 changes: 3 additions & 1 deletion S02-types/baghash.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 289;
plan 290;

# L<S02/Mutable types/QuantHash of UInt>

Expand Down Expand Up @@ -300,6 +300,8 @@ sub showkv($x) {

@a = $b.pick(-2.5);
is +@a, 0, '.pick(<negative number>) does not return any items';

lives-ok { @a = $b.pick(2.5) }, ".pick int-ifies arg"; # RT #131272
}

{
Expand Down

0 comments on commit 68d34de

Please sign in to comment.