aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix totality, unicode, examples, paragraph parsingSimon Hengel2014-01-121-465/+453
| | | | | | | | Also simplify specs and parsers while we're at it. Some parsers were made more generic. This commit is a part of GHC pre-merge squash, email fuuzetsu@fuuzetsu.co.uk if you need the full commit history.
* Don't append newline to parseString inputSimon Hengel2014-01-121-41/+36
| | | | We also check that we have parsed everything with endOfInput.
* Rename Haddock.ParseSpec to Haddock.ParserSpecSimon Hengel2014-01-122-10/+2
|
* One pass parser and tests.Mateusz Kowalczyk2014-01-122-111/+336
| | | | | | | | We remove the HTML test as it is no longer necessary. We cover the test case in spec tests and other HTML tests but keeping this around fails: this is because the new parser has different semantics there. In fact, I suspect the original behaviour was a bug that wasn't caught/fixed but simply included as-is during the testing.
* Fix warnings in test helperSimon Hengel2014-01-121-0/+16
|
* Add new field to DynFlagsMateusz Kowalczyk2013-09-181-0/+1
|
* Add test helperSimon Hengel2013-09-182-3/+167
|
* Use Hspec instead of nanospecMateusz Kowalczyk2013-09-032-132/+0
| | | | | | This is motivated by the fact that Haddock tests are not ran by the GHC's ‘validate’ script so we're pretty liberal on dependencies in that area. Full Hspec gives us some nice features such as Quickcheck integration.
* Add spec tests.Mateusz Kowalczyk2013-08-251-23/+358
| | | | | This adds tests for all elements we can create during regular parsing. This also adds tests for text with unicode in it.
* Move unit tests to /test directorySimon Hengel2012-10-154-0/+222