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

Completely overhaul test-suite #356

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Aug 15, 2022

Overhault test-suite of hie-bios.

It became increasingly difficult to understand the test-suite, even though it is tiny!
So, we introduce an EDSL to define tests and a number of helper functions.

Additionally, we avoid nesting of predicate functions, and try to avoid indirective testing.

At least in my opinion, the test definitions are much cleaner, even though we have a bit more lines now.

@fendor fendor requested review from hasufell and jneira August 15, 2022 20:23
tests/BiosTests.hs Outdated Show resolved Hide resolved
tests/BiosTests.hs Outdated Show resolved Hide resolved
tests/BiosTests.hs Outdated Show resolved Hide resolved
tests/BiosTests.hs Outdated Show resolved Hide resolved
@fendor fendor merged commit 171b865 into haskell:master Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant