Added basic parser functionality & tests for these functionalites. Split tests in several files
This commit is contained in:
parent
4c1f25e49d
commit
83659e69b4
9 changed files with 504 additions and 12 deletions
|
@ -8,11 +8,12 @@ library
|
|||
hs-source-dirs: lib, lib/control, lib/data, lib/render
|
||||
build-depends:
|
||||
base >= 4.7 && <5,
|
||||
gloss >= 1.11 && < 1.14, gloss-juicy >= 0.2.3
|
||||
gloss >= 1.11 && < 1.14, gloss-juicy >= 0.2.3,
|
||||
parsec >= 3.1.15.1
|
||||
exposed-modules:
|
||||
RPGEngine,
|
||||
-- Control
|
||||
Input, InputHandling,
|
||||
Input, InputHandling, Parse,
|
||||
-- Data
|
||||
Game, Internals, Player, State,
|
||||
-- Render
|
||||
|
@ -26,7 +27,11 @@ executable rpg-engine
|
|||
|
||||
test-suite rpg-engine-test
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: RPG-Engine-Test.hs
|
||||
main-is: RPGEngineSpec.hs
|
||||
hs-source-dirs: test
|
||||
default-language: Haskell2010
|
||||
build-depends: base >=4.7 && <5, hspec <= 2.10.6, rpg-engine
|
||||
build-depends: base >=4.7 && <5, hspec <= 2.10.6, hspec-discover, rpg-engine
|
||||
other-modules:
|
||||
InteractionSpec,
|
||||
-- Parsing
|
||||
ParsedToGameSpec, ParserSpec
|
||||
|
|
Reference in a new issue