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

Add strictness tests for IntMap construction #1063

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

meooow25
Copy link
Contributor

@meooow25 meooow25 commented Nov 3, 2024

For #1019.
Follows #1021.

@meooow25
Copy link
Contributor Author

meooow25 commented Nov 3, 2024

Failing on #1061 (the test checks for the desired non-erroring behavior).

@meooow25 meooow25 force-pushed the intmap-construct-strictness-tests branch from 01b448a to c713478 Compare November 16, 2024 15:10
This aims to reduce the chance of introducing strictness bugs.
Since we use the same IntMap type for lazy and strict maps, it is not
possible to ensure appropriate strictness at the type level. So we turn
to property tests.

This follows similar tests implemented for Map.
@meooow25 meooow25 force-pushed the intmap-construct-strictness-tests branch from c713478 to 4bb5eae Compare November 17, 2024 13:56
@meooow25 meooow25 merged commit b24068b into haskell:master Nov 17, 2024
12 checks passed
@meooow25 meooow25 deleted the intmap-construct-strictness-tests branch November 17, 2024 14:16
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