feat: tests for the rendering/parsing
This commit is contained in:
parent
9484d097d4
commit
d012307d19
8 changed files with 104 additions and 45 deletions
|
@ -29,6 +29,7 @@ library
|
|||
Language.Brainfuck.Instruction
|
||||
Language.Brainfuck.Instruction.Compressed
|
||||
Language.Brainfuck.Instruction.Extended
|
||||
Language.Brainfuck.Interpreter
|
||||
other-modules:
|
||||
Paths_bf_optimize
|
||||
autogen-modules:
|
||||
|
@ -37,7 +38,9 @@ library
|
|||
src
|
||||
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints
|
||||
build-depends:
|
||||
base >=4.7 && <5
|
||||
QuickCheck
|
||||
, base >=4.7 && <5
|
||||
, quickcheck-instances
|
||||
, text
|
||||
, vector
|
||||
default-language: Haskell2010
|
||||
|
@ -52,8 +55,10 @@ executable bf-optimize-exe
|
|||
app
|
||||
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
|
||||
build-depends:
|
||||
base >=4.7 && <5
|
||||
QuickCheck
|
||||
, base >=4.7 && <5
|
||||
, bf-optimize
|
||||
, quickcheck-instances
|
||||
, text
|
||||
, vector
|
||||
default-language: Haskell2010
|
||||
|
@ -62,8 +67,8 @@ test-suite bf-optimize-test
|
|||
type: exitcode-stdio-1.0
|
||||
main-is: Spec.hs
|
||||
other-modules:
|
||||
Arbitrary.InvalidBrainfuckProgram
|
||||
Arbitrary.ValidBrainfuckProgram
|
||||
Arbitrary.InvalidBrainfuckText
|
||||
Arbitrary.ValidBrainfuckText
|
||||
Paths_bf_optimize
|
||||
autogen-modules:
|
||||
Paths_bf_optimize
|
||||
|
@ -74,6 +79,7 @@ test-suite bf-optimize-test
|
|||
QuickCheck
|
||||
, base >=4.7 && <5
|
||||
, bf-optimize
|
||||
, quickcheck-instances
|
||||
, text
|
||||
, vector
|
||||
default-language: Haskell2010
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue