Attached patch adds a few more passing tests to 'make spectest_regression'. bacek++ for fudging some of them, and pmichaud++ for implementing much of it!
I didn't add S29-list/map.t to the list which also passes (fudged), but has this block at its end: # # Map with mutating block # # Dubious: According to S29's definition, neither map nor grep allows for # mutation. On the other hand, it seems useful to preserve the bugward # behaviour. Marking :todo<unspecced>, pending p6l discussion (see thread # "[S29] Mutating map and grep" on p6l started by Ingo Blechschmidt # L<"http://www.nntp.perl.org/group/perl.perl6.language/22553">) and S29 patch. #?rakudo todo 'unspecced' { my @array = <a b c d>; todo('unspecced'); is ~(try { @array.map: { $_ ~= "c"; $_ ~ "d" } }), "acd bcd ccd dcd", 'mutating $_ in map works (1)'; todo('unspecced'); is [EMAIL PROTECTED], "ac bc cc dc", 'mutating $_ in map works (2)'; } These two tests actually succeed in rakudo, but should they? -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
Index: t/spectest_regression.data =================================================================== --- t/spectest_regression.data (revision 27933) +++ t/spectest_regression.data (working copy) @@ -7,6 +7,8 @@ S02-literals/hex_chars.t S02-literals/radix.t S03-operators/autoincrement.t # pure +S03-operators/comparison.t # pure +S03-operators/cross-metaop.t S03-operators/equality.t # pure S03-operators/not.t # pure S03-operators/relational.t # pure @@ -22,12 +24,18 @@ S12-methods/calling_syntax.t # pure S12-role/composition.t # pure S16-filehandles/connect.t # pure +S16-io/say.t # pure S29-any/cmp.t # pure S29-array/delete.t # pure S29-array/exists.t # pure S29-array/keys_values.t # pure S29-array/kv.t # pure S29-array/pairs.t # pure +S29-array/pop.t +S29-array/shift.t +S29-list/map_empty_list.t +S29-list/map_flattening.t # pure +S29-list/map_function_return_values.t S29-list/mutating_listops.t # pure S29-list/sort.t S29-num/abs.t @@ -36,6 +44,7 @@ S29-num/int.t S29-num/log.t S29-num/pi.t +S29-num/rand.t S29-num/roots.t S29-num/sign.t S29-num/sqrt.t
signature.asc
Description: OpenPGP digital signature