Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs #10

Closed
aleeusgr opened this issue Oct 23, 2022 · 3 comments
Closed

Docs #10

aleeusgr opened this issue Oct 23, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@aleeusgr
Copy link
Owner Author

https://www.youtube.com/watch?v=PGsDvgmZF7A

test a function with tasty. get test cases from a file using IO readFile
imports,
shouldBe

@aleeusgr
Copy link
Owner Author

aleeusgr commented Oct 23, 2022

https://wiki.haskell.org/How_to_write_a_Haskell_program
Use Cabal. You should read at least the start of section 2 of the Cabal User's Guide.
You should use cabal-install
DOCS: For libraries, use Haddock

You can use QuickCheck or SmallCheck to test pure code. These libraries work best when you have known invariants in your code's behavior. See this Cabal file for an example of how to include tests in your Cabal package.

To get started, try Introduction to QuickCheck. For a slightly more advanced introduction, Simple Unit Testing in Haskell is a blog article about creating a testing framework for QuickCheck using some Template Haskell. For HUnit, see HUnit 1.0 User's Guide

doctest is another testing method similar to python Doctest

N.B.

$ git add haq.cabal Setup.hs LICENSE README
$ git commit -am "Add a build system"

@aleeusgr aleeusgr added the documentation Improvements or additions to documentation label Oct 24, 2022
@aleeusgr
Copy link
Owner Author

@aleeusgr aleeusgr closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant