Skip to content

Commit

Permalink
Test native int ops with Buf creation
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Mar 5, 2018
1 parent ddf48cf commit 32ac651
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S32-container/buf.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 21;
plan 22;

# L<S32::Containers/Classes and Roles/"=item Buf">

Expand Down Expand Up @@ -197,4 +197,8 @@ is-deeply Buf.allocate(10, (1,2,3)).reallocate(0).reallocate(5),
is-deeply Buf.new(1 xx 2.join, ("1", "1"),
'no explosions when hypering .join over a Blob';

# https://rt.perl.org/Ticket/Display.html?id=128655
is-deeply Buf.new((my int $i = 0x03) +& 0x6), Buf.new(2),
'can use native int operations to create a Buf with';

# vim: ft=perl6

0 comments on commit 32ac651

Please sign in to comment.