Skip to content

Add roundtrip tests for all common types #29

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

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.

2 participants