Skip to content

Commit

Permalink
Add primitive testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Dec 26, 2023
1 parent 6f2f290 commit 7fa235c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
24 changes: 11 additions & 13 deletions hocd.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,17 @@ executable hocd-readme
main-is: README.lhs
ghc-options: -pgmL markdown-unlit -Wall

-- test-suite hocd-tests
-- type: exitcode-stdio-1.0
-- hs-source-dirs: test
-- main-is: Spec.hs
-- other-modules: --ParseSpec
-- SpecHelper
-- build-tool-depends:
-- hspec-discover:hspec-discover
-- build-depends: base >= 4.7 && < 5
-- , hocd
-- , hspec
-- , base16-bytestring
-- default-language: Haskell2010
test-suite hocd-tests
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules: ParseSpec
build-tool-depends:
hspec-discover:hspec-discover
build-depends: base >= 4.7 && < 5
, hocd
, hspec
default-language: Haskell2010

source-repository head
type: git
Expand Down
1 change: 1 addition & 0 deletions src/HOCD/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module HOCD.Command
, ReadMemory(..)
, WriteMemory(..)
, subChar
, parseMem
) where

import Data.Bits (FiniteBits(..))
Expand Down
2 changes: 1 addition & 1 deletion src/HOCD/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ data OCDError
| OCDError_GetAddrInfoFailed
| OCDError_ParseMemory [OCDError]
| OCDError_ExpectedOneButGotMore
deriving (Show)
deriving (Eq, Show)

0 comments on commit 7fa235c

Please sign in to comment.