Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[crypt.pl] uncovered, removal of a disk still forbidden

Unless it's the tiny disk.
  • Loading branch information...
commit 26f2c6bcf1654e134e49c9642bb24e0813787856 1 parent b6edc9c
Carl Mäsak authored July 01, 2012

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

  1. 9  crypt.pl
9  crypt.pl
@@ -363,6 +363,15 @@ (&code, $ex_type, $message, &followup?)
363 363
                 is .covered_by, ['small disk'],
364 364
                     '.covered_by attribute';
365 365
             };
  366
+
  367
+        $game.move('small disk', 'middle');
  368
+        throws_exception
  369
+            { $game.remove('medium disk') },
  370
+            X::Hanoi::ForbiddenDiskRemoval,
  371
+            'removing a disk (-) uncovered, removal is still forbidden',
  372
+            {
  373
+                is .disk, 'medium disk', '.disk attribute';
  374
+            };
366 375
     }
367 376
 
368 377
     done;

0 notes on commit 26f2c6b

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