Skip to content

Extremely basic usage of the package - readme example #40

Closed Answered by Seelengrab
nilshg asked this question in Helpdesk
Discussion options

You must be logged in to vote

Thanks for the questions!

What function are we testing here?

There's no explicit function/property per se that we're testing here; it's an example to introduce the @check syntax while defining a property foo. I should probably put a better example there that actually tests something! I originally used such a small example so that readers aren't overwhelmed with a large block of foreign syntax, but I can see how that backfires when the property is pretty nonsensical 😅

But here there's no function that we're testing, so are we essentially just testing that (probabilistically) all elements of intgen are of type Int?

Yes, that is correct - note that intgen is defined as Data.Integers{Int8}()

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by nilshg
Comment options

You must be logged in to vote
1 reply
@Seelengrab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants