Fix rendering issue
This commit is contained in:
parent
f3bce99120
commit
ef784c2dbc
9 changed files with 28 additions and 25 deletions
|
@ -11,8 +11,8 @@ import RPGEngine.Parse.TextToStructure (gameFile)
|
|||
spec :: Spec
|
||||
spec = do
|
||||
describe "Game" $ do
|
||||
-- TODO There is a weird bug that caused this to go in an infinite loop. Fix later.
|
||||
xit "Simple game" $ do
|
||||
it "Simple game" $ do
|
||||
pendingWith "There is a weird bug that caused this to go in an infinite loop. Fix later."
|
||||
let input = "player: {\n hp: 50,\n inventory: []\n}\n\nlevels: [\n {\n layout: {\n | * * * * * *\n | * s . . e *\n | * * * * * *\n },\n \n items: [],\n\n entities: []\n\n\n }\n]"
|
||||
correct = Game {
|
||||
state = Playing {
|
||||
|
@ -37,9 +37,9 @@ spec = do
|
|||
(Right struct) = parseWith gameFile input
|
||||
structureToGame struct `shouldBe` correct
|
||||
it "More complex game" $ do
|
||||
pendingWith "fix parsing first"
|
||||
pendingWith "Still need to write this"
|
||||
it "Game with multiple levels" $ do
|
||||
pendingWith "fix parsing first"
|
||||
pendingWith "Still need to write this"
|
||||
|
||||
describe "Player" $ do
|
||||
it "cannot die" $ do
|
||||
|
@ -144,7 +144,7 @@ spec = do
|
|||
|
||||
describe "Entities" $ do
|
||||
it "Simple entity" $ do
|
||||
pendingWith "fix parsing first"
|
||||
pendingWith "still need to write this"
|
||||
|
||||
describe "Level" $ do
|
||||
it "Simple layout" $ do
|
||||
|
|
Reference in a new issue