Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Use of KOTEST_VERSION property #198

Merged
merged 3 commits into from
Jun 26, 2020
Merged

Use of KOTEST_VERSION property #198

merged 3 commits into from
Jun 26, 2020

Conversation

rachelcarmena
Copy link
Member

In order to help to the progressive use of Kotest.

Note: it corresponds to 4.1.0 instead of 4.0.6. Let's see if it works...

In order to help to the progressive use of Kotest.
@nomisRev nomisRev merged commit cc48514 into master Jun 26, 2020
@nomisRev nomisRev deleted the kotest-version-property branch June 26, 2020 18:44
val last = max(a, b)
first..last
}
fun Arb.Companion.intRange(min: Int = Int.MIN_VALUE, max: Int = Int.MAX_VALUE): Arb<IntRange> =
Copy link
Member Author

Choose a reason for hiding this comment

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

@nomisRev , thank you so much for making it work for Kotest 4.1.0 🎉 Just a small question, could this change impact on current tests? I mean, the max value changed from 1000 to 2147483647. Thanks in advance!!

Copy link
Member Author

Choose a reason for hiding this comment

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

And the min value also changes (from 0 to -2147483648).

Copy link
Member

Choose a reason for hiding this comment

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

Hey @rachelcarmena,
The reason for this change was to make the generator more accurate.
The only current usage from this Arb explicitly defines min & max, so it doesn't impact the current suite.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great, thank you so much Simon!! 🙌

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants