Skip to content
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

Add samples Generator #973

Closed
sksamuel opened this issue Sep 2, 2019 · 3 comments

Comments

@sksamuel
Copy link
Member

commented Sep 2, 2019

Gen.samples(vararg xs :X) will take 1 or more Xs and then loop around providing those (starting from the beginning again once the end is reached).

@Kerooker

This comment has been minimized.

Copy link
Member

commented Sep 3, 2019

So
Gen.samples(1, 2, 3, 4, 5) would lead to [1, 2, 3, 4, 5, 1, 2, 3, 4, ...]?

@sksamuel

This comment has been minimized.

Copy link
Member Author

commented Sep 3, 2019

ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 7, 2019
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 7, 2019
sksamuel added a commit that referenced this issue Sep 10, 2019
#945 Shows missing element in failure message of shouldContainAll. (#980
)

* #945 Shows missing element in failure message of shouldContainAll.

* #945 Fixes failing test

* #973 Adds a samples type Gen which repeatably gives given samples

* Revert "#973 Adds a samples type Gen which repeatably gives given samples"

This reverts commit 7942978
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 10, 2019
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 10, 2019
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 11, 2019
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 11, 2019
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 11, 2019
sksamuel added a commit that referenced this issue Sep 13, 2019
#973 Adds a samples type Gen which repeatably gives given samples (#983)
* #973 Adds a samples type Gen which repeatably gives given samples

* #973 Describe Gen.samples in comment

* #973 Update Gen.samples to support nullable types and handle no sampleValues scenario

* #973 Fix grammatical mistake in Gen.samples description

* #973 Renames nextNumberGenerator to getNextSampleElementProvider
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 13, 2019
kotlintest#973 Adds a samples type Gen which repeatably gives given s…
…amples (kotlintest#983)

* kotlintest#973 Adds a samples type Gen which repeatably gives given samples

* kotlintest#973 Describe Gen.samples in comment

* kotlintest#973 Update Gen.samples to support nullable types and handle no sampleValues scenario

* kotlintest#973 Fix grammatical mistake in Gen.samples description

* kotlintest#973 Renames nextNumberGenerator to getNextSampleElementProvider
ashishkujoy added a commit to ashishkujoy/kotlintest that referenced this issue Sep 13, 2019
kotlintest#973 Adds a samples type Gen which repeatably gives given s…
…amples (kotlintest#983)

* kotlintest#973 Adds a samples type Gen which repeatably gives given samples

* kotlintest#973 Describe Gen.samples in comment

* kotlintest#973 Update Gen.samples to support nullable types and handle no sampleValues scenario

* kotlintest#973 Fix grammatical mistake in Gen.samples description

* kotlintest#973 Renames nextNumberGenerator to getNextSampleElementProvider
@Kerooker

This comment has been minimized.

Copy link
Member

commented Sep 14, 2019

Closed as per #983

@Kerooker Kerooker closed this Sep 14, 2019

sksamuel added a commit that referenced this issue Sep 14, 2019
#947 Adds Gen.file which randomly gives files from a given directory. (
…#985)

* #937 Adds a shouldBeIn matcher which check if a element is in given collection by value check instead of reference check

* #937 Adds a shouldBeIn matcher which check if a element is in given collection by value check instead of reference check

* #947 Adds Gen.file which randomly gives files from a given directory.

* #973 Adds a samples type Gen which repeatably gives given samples (#983)

* #973 Adds a samples type Gen which repeatably gives given samples

* #973 Describe Gen.samples in comment

* #973 Update Gen.samples to support nullable types and handle no sampleValues scenario

* #973 Fix grammatical mistake in Gen.samples description

* #973 Renames nextNumberGenerator to getNextSampleElementProvider

* #947 Adds unit test for Gen.file

* #947 Updates comment for Gen.file

* #947 Adds Gen.file which randomly gives files from a given directory.

* #947 Adds unit test for Gen.file

* Update jvmgens.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.