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

Any kv() question

Thread Next
Cory Spencer
March 12, 2009 15:45
Any kv() question
Message ID:

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...


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About