-
Notifications
You must be signed in to change notification settings - Fork 477
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
Fix testOrd
#5503
Conversation
plutus-tx-plugin/test/StdLib/Spec.hs
Outdated
-- 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)] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@@ -4,6 +4,7 @@ | |||
{-# LANGUAGE TemplateHaskell #-} | |||
{-# OPTIONS_GHC -fno-specialise #-} | |||
{-# OPTIONS_GHC -fno-warn-orphans #-} | |||
{-# OPTIONS_GHC -ddump-splices #-} |
There was a problem hiding this comment.
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
It fails if ratio denominator is 0: https://github.com/input-output-hk/plutus/runs/16359392302