Skip to content

Add roundtrip tests for all common types#29

Draft
dmjio wants to merge 2 commits into
masterfrom
roundtrip-tests
Draft

Add roundtrip tests for all common types#29
dmjio wants to merge 2 commits into
masterfrom
roundtrip-tests

Conversation

@dmjio
Copy link
Copy Markdown
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
Comment thread test/Main.hs Outdated
Comment thread test/Main.hs Outdated
Comment thread test/Main.hs
arbitrary =
TestTable
<$> arbitrary
<*> arbitrary -- choose (- 2^12, 2 ^ 12)
Copy link
Copy Markdown
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