Changeset 21162 for t/spec/S29-list/map.t
- Timestamp:
- 07/02/08 06:01:18 (5 months ago)
- Files:
-
- 1 modified
-
t/spec/S29-list/map.t (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S29-list/map.t
r20954 r21162 24 24 } 25 25 26 #?rakudo skip "adverbial closure"26 #?rakudo skip "adverbial block" 27 27 { 28 28 my @result = @list.map():{ $_ * 2 }; … … 45 45 } 46 46 47 #?rakudo skip "c olon invocant syntax"47 #?rakudo skip "closure as non-final argument" 48 48 { 49 49 my @result = map { $_ * 2 }: @list; … … 101 101 102 102 # map with n-ary functions 103 #?rakudo skip " colon invocant syntax"103 #?rakudo skip "adverbial block" 104 104 { 105 105 is ~(1,2,3,4).map:{ $^a + $^b }, "3 7", "map() works with 2-ary functions"; … … 110 110 111 111 # .map shouldn't work on non-arrays 112 ## XXX pmichaud, 2008-07-01: .map should work on non-list values 112 113 { 113 114 #?pugs 2 todo 'bug' 114 115 dies_ok { 42.map: { $_ } }, "method form of map should not work on numbers"; 115 116 dies_ok { "str".map: { $_ } }, "method form of map should not work on strings"; 116 #?rakudo skip " colon invocant syntax"117 #?rakudo skip "adverbial block" 117 118 is ~(42,).map:{ $_ }, "42", "method form of map should work on arrays"; 118 119 }; … … 131 132 =end pod 132 133 133 #?rakudo skip "colon invocant syntax" 134 ## XXX pmichaud, 2008-07-01: As the test is written below, the 135 ## @expected and "map of ..." arguments are arguments of .map(...) 136 ## and not of is(...). See S12:406. 137 #?rakudo skip "syntax error in test" 134 138 { 135 139 my @expected = ("foo","bar"); … … 140 144 141 145 142 #?rakudo skip "no hashes at the moment"146 #?rakudo skip '{} hash composer not implemented' 143 147 { 144 148 my @a = (1, 2, 3);
