Skip to content

Conversation

@dmjio
Copy link
Collaborator

@dmjio dmjio commented Sep 25, 2023

  • Should QuickCheck iso all types through a table

@dmjio dmjio requested a review from apkhandkar September 25, 2023 01:54
arbitrary =
TestTable
<$> arbitrary
<*> arbitrary -- choose (- 2^12, 2 ^ 12)
Copy link
Contributor

@apkhandkar apkhandkar Oct 2, 2023

Choose a reason for hiding this comment

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

The number(12,0) fields above have a range of [999999999999, -999999999999], these tests fail with a "value larger than specified precision" error because Int/Int64 are wider. choose (-(10^12 - 1), 10^12 -1) could be used here.

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.

3 participants