This is an automatically generated mail to inform you that tests are now available in t/spec/S02-builtin_data_types/enum.t
commit ec3fecca07d477e483f061520a4765587652383d Author: radus <ra...@c213334d-75ef-0310-aa23-eaa082d1ae64> Date: Sun Jun 27 08:30:51 2010 +0000 [t/spec] Added test for RT70894: Cannot do .keys on enum type stash in Rakudo. git-svn-id: http://svn.pugscode.org/p...@31474 c213334d-75ef-0310-aa23-eaa082d1ae64 diff --git a/t/spec/S02-builtin_data_types/enum.t b/t/spec/S02-builtin_data_types/enum.t index 6c573b2..0eddf9f 100644 --- a/t/spec/S02-builtin_data_types/enum.t +++ b/t/spec/S02-builtin_data_types/enum.t @@ -83,7 +83,8 @@ is %hash.values.sort, <A B C D E>, '...and the right values are assigned'; %hash = (); -lives_ok { %hash = enum <<:Alpha<A> Bravo Charlie Delta Echo>>; }, 'specifying a string up front works (Texas quotes)', :todo<feature>; +#?rakudo todo 'feature' +lives_ok { %hash = enum <<:Alpha<A> Bravo Charlie Delta Echo>>; }, 'specifying a string up front works (Texas quotes)'; #?pugs todo 'feature' is %hash.keys.sort, <Alpha Bravo Charlie Delta Echo>, '...and the right keys are assigned'; @@ -133,6 +134,15 @@ is %hash.values, (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F'), ' dies_ok { RT66648.c }, 'die attempting to access enum item as method'; } +# RT #70894 + +{ + enum SomeEnum <a b c>; + #?rakudo skip "RT #70894" + lives_ok {SomeEnum::.keys}, 'keys on enum stash works'; + +} + done_testing; # vim: ft=perl6