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

Fix testOrd #5503

Merged
merged 3 commits into from
Aug 30, 2023
Merged

Fix testOrd #5503

merged 3 commits into from
Aug 30, 2023

Conversation

zliu41
Copy link
Member

@zliu41 zliu41 commented Aug 30, 2023

@zliu41 zliu41 added the No Changelog Required Add this to skip the Changelog Check label Aug 30, 2023
@zliu41 zliu41 requested a review from a team August 30, 2023 21:36
-- Ratio must have non-zero denominator or else an ArithException will be thrown.
gen' =
Gen.choice
[Gen.integral (Range.linear (-10000) (-1)), Gen.integral (Range.linear 1 100000)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter would perhaps be a bit more readable, but this is fine too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, filter is much better.

@zliu41 zliu41 enabled auto-merge (squash) August 30, 2023 22:44
@zliu41 zliu41 merged commit ccd33fb into master Aug 30, 2023
7 checks passed
@zliu41 zliu41 deleted the zliu41/testOrd branch August 30, 2023 23:05
@@ -4,6 +4,7 @@
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-specialise #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -ddump-splices #-}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shouldn't have been committed

@zliu41 zliu41 mentioned this pull request Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No Changelog Required Add this to skip the Changelog Check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants