Skip to content

Commit

Permalink
Add test for R#1983
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 28, 2018
1 parent 66818d7 commit 5afa359
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S02-types/baghash.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 302;
plan 303;

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

Expand Down Expand Up @@ -705,4 +705,11 @@ is-deeply ('foo' => 10000000000000000000).BagHash.grab(1), ('foo',),
is %h.elems, 1, 'did we get right number of elements assignment';
}

# GH #1983
{
my %h is BagHash;
%h<foo> = 10000000000000000000;
is %h<foo>, 10000000000000000000, 'can successfully set >64-bit value';
}

# vim: ft=perl6

0 comments on commit 5afa359

Please sign in to comment.