Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 21 lines (12 sloc) 0.38 kB
5309f04 Adding some tests for List.new, Array.new, &list() and adding a descr…
ash authored
1 use v6;
2 use Test;
3
4 # L<S32::Containers/"Array"/"=item ">
5
6 =begin pod
7
8 built-in "Array" tests
9
10 =end pod
11
12 plan 3;
13
14 my $array_obj = Array.new(4, 5, 6);
15 is($array_obj.WHAT, Array, 'Creating a new list object with new works.');
16 is($array_obj, list(4, 5, 6), 'The list object contains the right values.');
17 is(+$array_obj, 3, 'Finding the length funcitons properly.');
18
19 # vim: ft=perl6
20
Something went wrong with that request. Please try again.