From a9c6c592595d1b893e10c5d682146c003f8ec1c1 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 14 Aug 2022 23:41:18 +0100 Subject: Introduced tests --- micro2.cabal | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'micro2.cabal') diff --git a/micro2.cabal b/micro2.cabal index bcdb59a..30bec21 100644 --- a/micro2.cabal +++ b/micro2.cabal @@ -24,11 +24,39 @@ executable micro2 Error Env Compiler + build-depends: + base ^>= 4.16.1.0 + , parsec ^>= 3.1.15.1 + , mtl ^>= 2.2.2 + , containers ^>= 0.6.5.1 + hs-source-dirs: src + default-language: Haskell2010 - build-depends: +library + exposed-modules: + Ast + Lexer + Parser + Error + Env + Compiler + build-depends: base ^>= 4.16.1.0 , parsec ^>= 3.1.15.1 , mtl ^>= 2.2.2 , containers ^>= 0.6.5.1 hs-source-dirs: src default-language: Haskell2010 + +test-suite tests + type: exitcode-stdio-1.0 + main-is: Main.hs + other-modules: + Language + build-depends: + base ^>= 4.16.1.0 + , HUnit + , micro2 + hs-source-dirs: test + default-language: Haskell2010 + -- cgit v1.2.3