Skip to content

Commit

Permalink
Move test to better place
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 11, 2016
1 parent 693052d commit 33c09fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 1 addition & 5 deletions S03-operators/repeat.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Repeat operators for strings and lists
=end description

plan 54;
plan 52;

#L<S03/Changes to Perl 5 operators/"x (which concatenates repetitions of a string to produce a single string">

Expand Down Expand Up @@ -169,10 +169,6 @@ is ((2, 4, 6).Seq xx *)[^2], ((2, 4, 6), (2, 4, 6)),
'(& xx Inf) works as & xx Inf';
is-deeply infix:<xx>({$++;}, 4e0)[^4], (|^4).Seq,
'(& xx Num) works as & xx Int';

'abc123def' ~~ m:g/\d/;
is-deeply $/.from, 3, 'List.from';
is-deeply $/.to, 6, 'List.to';
}

# vim: ft=perl6
8 changes: 7 additions & 1 deletion S05-match/positions.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version 0.3 (12 Apr 2004), file t/pos.t.
=end pod

plan 10;
plan 12;

my $str = "abrAcadAbbra";

Expand All @@ -27,4 +27,10 @@ ok($/<Aa>.from == 3, 'Subrule match pos is 3');

is ('abc' ~~ /\d+/), Nil, 'Failed match returns Nil';

{ # coverage; 2016-10-11
'abc123def' ~~ m:g/\d/;
is-deeply $/.from, 3, 'List.from';
is-deeply $/.to, 6, 'List.to';
}

# vim: ft=perl6

0 comments on commit 33c09fc

Please sign in to comment.