develooper Front page | perl.perl6.compiler | Postings from August 2010

[perl #77072] tests available

Thread Previous
From:
kyleha
Date:
August 7, 2010 10:13
Subject:
[perl #77072] tests available
Message ID:
20100807171505.76EA42E023A@tenacity.k.toehold.com
This is an automatically generated mail to inform you that tests are now available in t/spec/S02-builtin_data_types/array.t

commit d0df7b06ecf59256f0520d23b54d073cb965050b
Author: radus <radus@c213334d-75ef-0310-aa23-eaa082d1ae64>
Date:   Sat Aug 7 17:09:30 2010 +0000

    [t/spec] added test for RT 77072 @a[*] does not work as slice of all indexes
    
    git-svn-id: http://svn.pugscode.org/pugs@31920 c213334d-75ef-0310-aa23-eaa082d1ae64

diff --git a/t/spec/S02-builtin_data_types/array.t b/t/spec/S02-builtin_data_types/array.t
index 6a7752d..57c5f38 100644
--- a/t/spec/S02-builtin_data_types/array.t
+++ b/t/spec/S02-builtin_data_types/array.t
@@ -340,6 +340,14 @@ my @array2 = ("test", 1, Mu);
     dies_ok { Mu.[0] }, 'but Mu has no .[]';
 }
 
+#RT #77072
+
+#?rakudo skip 'RT 77072 star not working for array indexing yet - code fails' 
+{
+    my @a = <1 2 3>;
+    is @a[*], <1 2 3> , 'using * to access all array elements works';
+}
+
 done_testing;
 
 # vim: ft=perl6

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About