develooper Front page | perl.perl6.language | Postings from March 2009

Any kv() question

Thread Next
From:
Cory Spencer
Date:
March 12, 2009 15:45
Subject:
Any kv() question
Message ID:
Pine.LNX.4.64.0903121610300.16037@antiflux.org

In the spectest suite (specifically in:  t/spec/S32-array/kv.t), the last 
several tests seem to be testing for named arguments to kv:

     # check the non-invocant form with named arguments
     my @array = <a b c d>;
     my @kv = kv(:array(@array));
     #?rakudo skip 'named args'
     is(+@kv, 8, 'kv(:array(@array)) returns the correct number of elems');
     #?rakudo skip 'named args'
     is(~@kv, "0 a 1 b 2 c 3 d", 'kv(:array(@array)) has no inner list');

I've found no mention of named arguments to kv in the spec, so I'm 
wondering if these tests are out of date and should be removed...

-c

Thread Next


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