Permalink
Browse files

Add test for sokoban b

  • Loading branch information...
samfoo committed Oct 10, 2011
1 parent 1a495b3 commit df3d0b79e18447920e88f707c28ed55dc942aac8
Showing with 19 additions and 0 deletions.
  1. +19 −0 tests/game/test_dungeon.py
View
@@ -18,6 +18,25 @@ def test_sokoban_a():
assert looks_like_sokoban(display)
+def test_sokoban_b():
+ display = [
+ "------ ----- ",
+ "|....| |...| ",
+ "|.0..----.0.| ",
+ "|.0......0..| ",
+ "|..--->---0.| ",
+ "|---------.---",
+ "|..^^^<|.....|",
+ "|..----|0....|",
+ "--^| |.0...|",
+ " |^-----.0...|",
+ " |..^^^^0.0..|",
+ " |??----------",
+ " ---- ",
+ ]
+
+ assert looks_like_sokoban(display)
+
def test_not_mines_even_with_headstone():
display = [
"-----",

0 comments on commit df3d0b7

Please sign in to comment.