Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[bin/crypt] Added test for "dropping" the water in the helmet.

Which, of course, currently fails.
  • Loading branch information...
commit bcff5bfaf658265634e9a41986770fd8bf90373a 1 parent 772c8d8
lue authored July 25, 2012 masak committed July 26, 2012

Showing 1 changed file with 16 additions and 0 deletions. Show diff stats Hide diff stats

  1. 16  bin/crypt
16  bin/crypt
@@ -2607,6 +2607,22 @@ multi MAIN('test') {
2607 2607
             'after water is gone, can walk into crypt';
2608 2608
     }
2609 2609
 
  2610
+    {
  2611
+        my $game = game_from_hall();
  2612
+
  2613
+        $game.use('flashlight');
  2614
+        $game.take('helmet');
  2615
+        $game.walk('north');
  2616
+        $game.walk('north');
  2617
+        $game.put_thing_in('water', 'helmet');
  2618
+        is $game.drop('water'),
  2619
+            Adventure::PlayerDropped.new(
  2620
+                :thing<water>,
  2621
+            ),
  2622
+            'dropping water in the helmet';
  2623
+        )
  2624
+    }
  2625
+
2610 2626
     done;
2611 2627
 }
2612 2628
 

0 notes on commit bcff5bf

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