<commit_before>homepage: https://github.com/hspec/HUnit#readme
changelog-type: markdown
hash: 0da82cb0fc23723fa2ced7147374ad7d2e2b4c2cb96ca9e312a4068d5af3c213
test-bench-deps:
  base: ==4.*
  filepath: -any
  HUnit: -any
  deepseq: -any
maintainer: <NAME> <<EMAIL>>
synopsis: A unit testing framework for Haskell
changelog: ! '## Changes


  #### 1.3.1.2


  - Fixes the test suite on GHC 8


  #### 1.3.1.1


  - Various updates to metadata and documentation removing outdated information and
  making other things more visible


  ### 1.3.1.0


  - add minimal support for GHC 8.0


  ### 1.3.0.0


  - removed support for old compilers


  - add source locations for failing assertions (GHC >= 7.10.2 only)


  #### 1.2.5.2


  - Added support for GHC 7.7

'
basic-deps:
  base: ==4.*
  deepseq: -any
all-versions:
- '1.1'
- '1.2.0.0'
- '1.2.0.1'
- '1.2.0.2'
- '1.2.0.3'
- '1.2.2.0'
- '1.2.2.1'
- '1.2.2.3'
- '1.2.4.2'
- '1.2.4.3'
- '1.2.5.0'
- '1.2.5.1'
- '1.2.5.2'
- '1.3.0.0'
- '1.3.1.0'
- '1.3.1.1'
- '1.3.1.2'
author: <NAME>
latest: '1.3.1.2'
description-type: markdown
description: ! "# HUnit User's Guide\n\nHUnit is a unit testing framework for Haskell,
  inspired by the JUnit tool for Java. This\nguide describes how to use HUnit, assuming
  you are familiar with Haskell, though not\nnecessarily with JUnit. You can obtain
  HUnit, including this guide, at\n[https://github.com/hspec/HUnit](https://github.com/hspec/HUnit)\n\n##
  Introduction\nA test-centered methodology for software development is most effective
  when tests are\neasy to create, change, and execute. The [JUnit](www.junit.org)
  tool\npioneered support for test-first development in [Java](http://java.sun.com).\nHUnit
  is an adaptation of JUnit to Haskell, a general-purpose, purely functional\nprogramming
  language. (To learn more about Haskell, see www.haskell.org](http://www.haskell.org).\n\nWith
  HUnit, as with JUnit, you can easily create tests, name them, group them into\nsuites,
  and execute them, with the framework checking the results automatically. Test\nspecification
  in HUnit is even more concise and flexible than in JUnit, thanks to the\nnature
  of the Haskell language. HUnit currently includes only a text-based test\ncontroller,
  but the framework is designed for easy extension. (Would anyone care to\nwrite a
  graphical test controller for HUnit?)\n\nThe next section helps you get started
  using HUnit in simple ways. Subsequent sections\ngive details on [writing tests](#writing-tests)
  and [running tests](#running-tests).\nThe document concludes with a section describing
  HUnit's [constituent files](#constituent-files)\nand a section giving [references](#references)
  to further information.\n\n## Getting Started\n\nIn the Haskell module where your
  tests will reside, import module `Test.HUnit`:\n\n```haskell\nimport Test.HUnit\n```\n\nDefine
  test cases as appropriate:\n\n```haskell\ntest1 = TestCase (assertEqual \"for (foo
  3),\" (1,2) (foo 3))\ntest2 = TestCase (do (x,y) <- partA 3\n                     assertEqual<commit_msg>Update from Hackage at 2016-10-07T03:33:21+00:00<commit_after>homepage: https://github.com/hspec/HUnit#readme
changelog-type: markdown
hash: bb7fde09f43297f1b4a1307d3a526b47b30cfe5abad7cc2586c4c3cf7339b01f
test-bench-deps:
  base: ==4.*
  filepath: -any
  HUnit: -any
  deepseq: -any
  call-stack: -any
maintainer: <NAME> <<EMAIL>>
synopsis: A unit testing framework for Haskell
changelog: ! '## Changes


  #### 1.4.0.0


  - Depend on `call-stack`


  #### 1.3.1.2


  - Fixes the test suite on GHC 8


  #### 1.3.1.1


  - Various updates to metadata and documentation removing outdated information and
  making other things more visible


  ### 1.3.1.0


  - add minimal support for GHC 8.0


  ### 1.3.0.0


  - removed support for old compilers


  - add source locations for failing assertions (GHC >= 7.10.2 only)


  #### 1.2.5.2


  - Added support for GHC 7.7

'
basic-deps:
  base: ==4.*
  deepseq: -any
  call-stack: -any
all-versions:
- '1.1'
- '1.2.0.0'
- '1.2.0.1'
- '1.2.0.2'
- '1.2.0.3'
- '1.2.2.0'
- '1.2.2.1'
- '1.2.2.3'
- '1.2.4.2'
- '1.2.4.3'
- '1.2.5.0'
- '1.2.5.1'
- '1.2.5.2'
- '1.3.0.0'
- '1.3.1.0'
- '1.3.1.1'
- '1.3.1.2'
- '1.4.0.0'
author: <NAME>
latest: '1.4.0.0'
description-type: markdown
description: ! "# HUnit User's Guide\n\nHUnit is a unit testing framework for Haskell,
  inspired by the JUnit tool for Java. This\nguide describes how to use HUnit, assuming
  you are familiar with Haskell, though not\nnecessarily with JUnit. You can obtain
  HUnit, including this guide, at\n[https://github.com/hspec/HUnit](https://github.com/hspec/HUnit)\n\n##
  Introduction\nA test-centered methodology for software development is most effective
  when tests are\neasy to create, change, and execute. The [JUnit](www.junit.org)
  tool\npioneered support for test-first development in [Java](http://java.sun.com).\nHUnit
  is an adaptation of JUnit to Haskell, a general-purpose, purely functional\nprogramming
  language. (To learn more about Haskell, see www.haskell.org](http://www.haskell.org).\n\nWith
  HUnit, as with JUnit, you can easily create tests, name them, group them into\nsuites,
  and execute them, with the framework checking the results automatically. Test\nspecification
  in HUnit is even more concise and flexible than in JUnit, thanks to the\nnature
  of the Haskell language. HUnit currently includes only a text-based test\ncontroller,
  but the framework is designed for easy extension. (Would anyone care to\nwrite a
  graphical test controller for HUnit?)\n\nThe next section helps you get started
  using HUnit in simple ways. Subsequent sections\ngive details on [writing tests](#writing-tests)
  and [running tests](#running-tests).\nThe document concludes with a section describing
  HUnit's [constituent files](#constituent-files)\nand a section giving [references](#references)
  to further information.\n\n## Getting Started\n\nIn the Haskell module where your
  tests will reside, import module `Test.HUnit`:\n\n```haskell\nimport Test.HUnit\n```\n\nDefine
  test cases as appropriate:\n\n```haskell\ntest1 = TestCase (assertEqual \"for (foo
  3),\" (1,2) (foo 3))\ntest2 = TestCase (do (x,y) <- partA 3\n                     assertEqual
{'fraction_non_alphanumeric': 0.13228019786181586, 'fraction_numerical': 0.05026328386787937, 'mean_word_length': 3.4390934844192635, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 46, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4855457', 'n_tokens_mistral': 2421, 'n_tokens_neox': 2202, 'n_words': 674}