Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
new test seq.t
  • Loading branch information
zhuomingliang committed Aug 23, 2015
1 parent bdb37bb commit 4345b0b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions S32-list/seq.t
@@ -0,0 +1,24 @@
use v6;
use Test;

plan 3;

my @result = 1,2,3;

my @a = (1,2,3).map(*.Int);
is @a, @result, 'seq => array works 1';

my ($x, @b) = ('xxx', (1,2,3).map(*.Int));
is @b, @result, 'seq => array works 2';


my @expected-searches = <beer masak vacation whisky>;
my ($y, @searches) = q:to/INPUT/, q:to/SEARCHES/.lines;
xxxx
INPUT
beer
masak
vacation
whisky
SEARCHES
is-deeply @searches, @expected-searches, 'seq => array works 3';

0 comments on commit 4345b0b

Please sign in to comment.