Replies: 1 comment 2 replies
-
|
You're talking about this effect library right? As far as I know, fast-check is not directly affiliated with this project. The issue might be with their usage pattern. I had a quick look at their codebase but at a glance I can't tell how they map their BigDecimal representation to a fast-check Arbitrary. I would recommend to file in issue at their repository first. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We're using Fast-check to run property tests against our Effect Schema but Fast-check is struggling to generate values that match the schema for BigDecimal values.
Our code looks like this:
When we log out the generated values, they are all very small decimals (all less than 100 I believe). It feels like they are the wrong order of magnitude (schema defines it as between 0 and 100,000,000).
e.g.:
Is there a way we can configure Fast-check to understand how to generate BigDecimals? I thought because Fast-check is bundled with Effect, it would be able to handle it.
Beta Was this translation helpful? Give feedback.
All reactions