Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (24 sloc) 0.93 kb
58135b30 »
2008-05-08 [t/spec] changed 'use v6-alpha;' to 'use v6;'
1 use v6;
8bed6491 »
2008-01-16 Added svn props to test scripts
2
3 use Test;
4
e47e2da7 »
2012-07-11 Update tests for .values; .values returns something safely mutable.
5 plan 8;
8bed6491 »
2008-01-16 Added svn props to test scripts
6
a98c7239 »
2008-01-20 t/spec/S29-array/*.t: converted to new POD format
7 =begin description
8bed6491 »
2008-01-16 Added svn props to test scripts
8
f0c51f9c »
2009-03-04 [t] fixed pod locations for S32-array
9 Basic C<keys> and C<values> tests for arrays, see S32.
8bed6491 »
2008-01-16 Added svn props to test scripts
10
a98c7239 »
2008-01-20 t/spec/S29-array/*.t: converted to new POD format
11 =end description
8bed6491 »
2008-01-16 Added svn props to test scripts
12
13 my @array = <a b c d>;
14
ab1c1536 »
2009-04-26 [t/spec/S32-array] smartlinks
15 # L<S32::Containers/"Array"/=item keys>
8bed6491 »
2008-01-16 Added svn props to test scripts
16 is(~@array.keys, '0 1 2 3', '@arrays.keys works');
17 is(~keys(@array), '0 1 2 3', 'keys(@array) works');
18 is(+@array.keys, +@array, 'we have the same number of keys as elements in the array');
19
ab1c1536 »
2009-04-26 [t/spec/S32-array] smartlinks
20 # L<S32::Containers/"Array"/=item values>
8bed6491 »
2008-01-16 Added svn props to test scripts
21 is(~@array.values, 'a b c d', '@array.values works');
22 is(~values(@array), 'a b c d', 'values(@array) works');
23 is(+@array.values, +@array, 'we have the same number of values as elements in the array');
24
e311f173 »
2012-07-16 pugs fudge
25 #?pugs emit #
e47e2da7 »
2012-07-11 Update tests for .values; .values returns something safely mutable.
26 my $v := @array.values;
e311f173 »
2012-07-16 pugs fudge
27 #?pugs emit #
e47e2da7 »
2012-07-11 Update tests for .values; .values returns something safely mutable.
28 $v.shift; $v.shift;
e311f173 »
2012-07-16 pugs fudge
29 #?pugs skip "Can't modify constant item: VUndef"
e47e2da7 »
2012-07-11 Update tests for .values; .values returns something safely mutable.
30 is($v.elems, 2, "shifting .values removes an element...");
e311f173 »
2012-07-16 pugs fudge
31 #?pugs skip "Can't modify constant item: VUndef"
e47e2da7 »
2012-07-11 Update tests for .values; .values returns something safely mutable.
32 is(@array.elems, 4, "...while leaving original list alone.");
33
f0c51f9c »
2009-03-04 [t] fixed pod locations for S32-array
34 # vim: ft=perl6
Something went wrong with that request. Please try again.