Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed broken tests

Someone must have made commits without running the tests to make sure they
pass.
  • Loading branch information...
commit f8d2a55f31a534887d202a2796ea6ea77f8b9b32 1 parent 7767052
Carl Mäsak authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  bin/crypt
5  bin/crypt
@@ -333,7 +333,7 @@ class Adventure::Engine {
333 333
     method look() {
334 334
         my @events = Adventure::PlayerLooked.new(
335 335
             :description_of($!player_location),
336  
-            :exits(%!exits($!player_location)),
  336
+            :exits(%!exits{$!player_location}.keys),
337 337
         );
338 338
         self!apply($_) for @events;
339 339
         @events;
@@ -699,6 +699,7 @@ multi MAIN('test') {
699 699
         is $game.look(),
700 700
             Adventure::PlayerLooked.new(
701 701
                 :description_of<clearing>,
  702
+                :exits<east>,
702 703
             ),
703 704
             'looking at the room';
704 705
     }
@@ -742,6 +743,7 @@ multi MAIN('test') {
742 743
                 ),
743 744
                 Adventure::PlayerLooked.new(
744 745
                     :description_of<hill>,
  746
+                    :exits<west>,
745 747
                 ),
746 748
             ],
747 749
             'walking (+)';
@@ -819,6 +821,7 @@ multi MAIN('test') {
819 821
                 ),
820 822
                 Adventure::PlayerLooked.new(
821 823
                     :description_of<inside>,
  824
+                    :exits<northeast>,
822 825
                 ),
823 826
             ],
824 827
             'going inside now means going southwest';

0 notes on commit f8d2a55

Please sign in to comment.
Something went wrong with that request. Please try again.