Permalink
Browse files

fix Hash.pairs etc. for empty hashes; run 4 more test files

  • Loading branch information...
1 parent cbdfa61 commit 2176102eacbbe0095c4cf914d4a97e313b8aadb8 @moritz moritz committed Jul 29, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −0 src/core/EnumMap.pm
  2. +4 −4 t/spectest.data
View
@@ -23,6 +23,7 @@ my class EnumMap does Associative {
method kv() { self.pairs.map( { $_.kv } ) }
method values() { self.pairs.map( { $_.value } ) }
method pairs() {
+ return unless pir::defined($!storage);
gather {
my Mu $iter := nqp::iterator($!storage);
my Mu $pair;
View
@@ -23,7 +23,7 @@ S02-builtin_data_types/catch_type_cast_mismatch.t
S02-builtin_data_types/declare.t
S02-builtin_data_types/flattening.t
S02-builtin_data_types/hash_ref.t
-# S02-builtin_data_types/hash.t # err: No applicable candidates found to dispatch to for 'ACCEPTS'
+S02-builtin_data_types/hash.t
S02-builtin_data_types/infinity.t
# S02-builtin_data_types/instants-and-durations.t # err: Could not find sub &term:<now>
# S02-builtin_data_types/lists.t # err: Cannot use augment scope with class
@@ -157,8 +157,8 @@ S03-operators/short-circuit.t
S03-operators/spaceship-and-containers.t
S03-operators/spaceship.t
S03-operators/subscript-vs-lt.t
-# S03-operators/ternary.t # err: Unable to parse blockoid
-# S03-operators/so.t # err: Method 'so' not found for invocant of class 'Bool'
+S03-operators/ternary.t
+S03-operators/so.t
S03-operators/value_equivalence.t
S03-sequence/arity0.t
# S03-sequence/arity-2-or-more.t # err: Method 'succ' not found for invocant of class 'Failure'
@@ -211,7 +211,7 @@ S04-statements/for-scope.t
S04-statements/for.t
S04-statements/for_with_only_one_item.t
S04-statements/gather.t
-# S04-statements/given.t # err: Method 'so' not found for invocant of class 'Int'
+S04-statements/given.t
S04-statements/if.t
S04-statements/last.t
S04-statements/loop.t

0 comments on commit 2176102

Please sign in to comment.