#18 #14 Inital parser commit

Added basic parser functionality & tests for these functionalites.
Split tests in several files
This commit is contained in:
Tibo De Peuter 2022-12-17 23:14:04 +01:00
parent 4c1f25e49d
commit 83659e69b4
9 changed files with 504 additions and 12 deletions

52
test/ParsedToGameSpec.hs Normal file
View file

@ -0,0 +1,52 @@
module ParsedToGameSpec where
import Test.Hspec
import Parse
spec :: Spec
spec = do
describe "Game" $ do
it "TODO: Simple game" $ do
pending
it "TODO: More complex game" $ do
pending
it "TODO: Game with multiple levels" $ do
pending
describe "Player" $ do
it "TODO: Simple player" $ do
pending
describe "Inventory" $ do
it "TODO: Empty inventory" $ do
pending
it "TODO: Singleton inventory" $ do
pending
it "TODO: Filled inventory" $ do
pending
describe "Items" $ do
it "TODO: Simple item" $ do
pending
-- Check id
-- Check x
-- Check y
-- Check name
-- Check description
-- Check useTimes
-- Check value
-- Check actions
describe "Actions" $ do
it "TODO: Simple action" $ do
pending
describe "Entities" $ do
it "TODO: Simple entity" $ do
pending
describe "Level" $ do
it "TODO: Simple layout" $ do
pending
it "TODO: Complex layout" $ do
pending