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
Fix Arb.list failing within edge cases in case of null values #3982
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AlexCue987
reviewed
Apr 25, 2024
@@ -91,6 +92,11 @@ class CollectionsTest : DescribeSpec({ | |||
it.shouldHaveAtMostSize(500) | |||
} | |||
} | |||
|
|||
it("not fail on edge cases for non-empty lists with null values") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as the success here is "it doesn't throw an exception", should we say so: shouldNotThrowAny ...
also do we need to add any other checks for the output?
shouldNoThrowAny sounds great.
Don't think a check on the output adds any benefit though, but I'll give it
another thought.
…On Thu, Apr 25, 2024, 22:25 Alex Kuznetsov ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In
kotest-property/src/jvmTest/kotlin/com/sksamuel/kotest/property/arbitrary/CollectionsTest.kt
<#3982 (comment)>:
> @@ -91,6 +92,11 @@ class CollectionsTest : DescribeSpec({
it.shouldHaveAtMostSize(500)
}
}
+
+ it("not fail on edge cases for non-empty lists with null values") {
as the success here is "it doesn't throw an exception", should we say so: shouldNotThrowAny
...
also do we need to add any other checks for the output?
—
Reply to this email directly, view it on GitHub
<#3982 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKAMQI3M45W7HC44R7G5K4TY7FRFJAVCNFSM6AAAAABGY4RSEGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAMRTGUYTAMRQGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Updated: I've added some more scenarios and introduced some output checks. |
Kantis
approved these changes
May 9, 2024
renovate bot
added a commit
to StefanLobbenmeier/yt-dlp-compose
that referenced
this pull request
May 9, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-runner-junit5](https://togithub.com/kotest/kotest) | `5.8.1` -> `5.9.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-runner-junit5/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-runner-junit5/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-runner-junit5/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-runner-junit5/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-runner-junit5)</summary> ### [`v5.9.0`](https://togithub.com/kotest/kotest/releases/tag/v5.9.0) #### Highlights Support for wasmJs has been added, curtesy of [@​OliverO2](https://togithub.com/OliverO2) #### What's Changed - Add wasmJs target by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3805 - fix(docs): indentation in System Extensions by [@​craigpastro](https://togithub.com/craigpastro) in [kotest/kotest#3940 - Change Arb.filterIsInstance() signature to use single type parameter by [@​kshired](https://togithub.com/kshired) in [kotest/kotest#3943 - Add missing functions to property-arbs docs by [@​snowe2010](https://togithub.com/snowe2010) in [kotest/kotest#3945 - Increasing JVM heap allowance on GitHub by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3948 - Fix JS and Wasm/JS test timeouts, bring back Node.js test output by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3953 - add-similarity-to-contains-draft ([#​42](https://togithub.com/kotest/kotest/issues/42)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3906 - Update Sonatype snapshot URL by [@​aSemy](https://togithub.com/aSemy) in [kotest/kotest#3956 - Fix json assertions artifact coordinate in docs by [@​TWiStErRob](https://togithub.com/TWiStErRob) in [kotest/kotest#3968 - Create CODE_OF_CONDUCT.md by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#3987 - Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix [#​3329](https://togithub.com/kotest/kotest/issues/3329) by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3954 - Correct Collection Matchers Documentation For `collection.shouldContainAllInAnyOrder()` by [@​u-ways-e](https://togithub.com/u-ways-e) in [kotest/kotest#3995 - chore(deps): update plugin com.gradle.enterprise to v3.17.2 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3990 - Add kotlin-faker to extensions list by [@​serpro69](https://togithub.com/serpro69) in [kotest/kotest#3971 - Better assertion failures for containJsonKeyValue by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3949 - fix(deps): update dependency io.github.classgraph:classgraph to v4.8.172 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3957 - Add similarity to contain exactly in any order by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3938 - Fix Arb.list failing within edge cases in case of null values by [@​oliverblaha](https://togithub.com/oliverblaha) in [kotest/kotest#3982 - chore(deps): update plugin kotlinbinarycompatibilityvalidator to v0.14.0 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3993 - chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3992 - fixing the kotest autoscan warning message to reference the right property name by [@​stepanv](https://togithub.com/stepanv) in [kotest/kotest#4000 - fix(deps): update dependency io.projectreactor.tools:blockhound to v1.0.9.release by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3989 - Allow comparison between empty set and other iterables by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4005 - Moving similarity feature to kotest-assertions-core by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4006 #### New Contributors - [@​craigpastro](https://togithub.com/craigpastro) made their first contribution in [kotest/kotest#3940 - [@​snowe2010](https://togithub.com/snowe2010) made their first contribution in [kotest/kotest#3945 - [@​TWiStErRob](https://togithub.com/TWiStErRob) made their first contribution in [kotest/kotest#3968 - [@​u-ways-e](https://togithub.com/u-ways-e) made their first contribution in [kotest/kotest#3995 - [@​serpro69](https://togithub.com/serpro69) made their first contribution in [kotest/kotest#3971 - [@​stepanv](https://togithub.com/stepanv) made their first contribution in [kotest/kotest#4000 **Full Changelog**: kotest/kotest@v5.8.1...v5.9.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/StefanLobbenmeier/yt-dlp-compose). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
added a commit
to typesafegithub/github-actions-typing
that referenced
this pull request
May 9, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-bom](https://togithub.com/kotest/kotest) | `5.8.1` -> `5.9.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-bom/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-bom/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-bom/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-bom/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-bom)</summary> ### [`v5.9.0`](https://togithub.com/kotest/kotest/releases/tag/v5.9.0) #### Highlights Support for wasmJs has been added, curtesy of [@​OliverO2](https://togithub.com/OliverO2) #### What's Changed - Add wasmJs target by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3805 - fix(docs): indentation in System Extensions by [@​craigpastro](https://togithub.com/craigpastro) in [kotest/kotest#3940 - Change Arb.filterIsInstance() signature to use single type parameter by [@​kshired](https://togithub.com/kshired) in [kotest/kotest#3943 - Add missing functions to property-arbs docs by [@​snowe2010](https://togithub.com/snowe2010) in [kotest/kotest#3945 - Increasing JVM heap allowance on GitHub by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3948 - Fix JS and Wasm/JS test timeouts, bring back Node.js test output by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3953 - add-similarity-to-contains-draft ([#​42](https://togithub.com/kotest/kotest/issues/42)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3906 - Update Sonatype snapshot URL by [@​aSemy](https://togithub.com/aSemy) in [kotest/kotest#3956 - Fix json assertions artifact coordinate in docs by [@​TWiStErRob](https://togithub.com/TWiStErRob) in [kotest/kotest#3968 - Create CODE_OF_CONDUCT.md by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#3987 - Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix [#​3329](https://togithub.com/kotest/kotest/issues/3329) by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3954 - Correct Collection Matchers Documentation For `collection.shouldContainAllInAnyOrder()` by [@​u-ways-e](https://togithub.com/u-ways-e) in [kotest/kotest#3995 - chore(deps): update plugin com.gradle.enterprise to v3.17.2 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3990 - Add kotlin-faker to extensions list by [@​serpro69](https://togithub.com/serpro69) in [kotest/kotest#3971 - Better assertion failures for containJsonKeyValue by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3949 - fix(deps): update dependency io.github.classgraph:classgraph to v4.8.172 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3957 - Add similarity to contain exactly in any order by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3938 - Fix Arb.list failing within edge cases in case of null values by [@​oliverblaha](https://togithub.com/oliverblaha) in [kotest/kotest#3982 - chore(deps): update plugin kotlinbinarycompatibilityvalidator to v0.14.0 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3993 - chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3992 - fixing the kotest autoscan warning message to reference the right property name by [@​stepanv](https://togithub.com/stepanv) in [kotest/kotest#4000 - fix(deps): update dependency io.projectreactor.tools:blockhound to v1.0.9.release by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3989 - Allow comparison between empty set and other iterables by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4005 - Moving similarity feature to kotest-assertions-core by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4006 #### New Contributors - [@​craigpastro](https://togithub.com/craigpastro) made their first contribution in [kotest/kotest#3940 - [@​snowe2010](https://togithub.com/snowe2010) made their first contribution in [kotest/kotest#3945 - [@​TWiStErRob](https://togithub.com/TWiStErRob) made their first contribution in [kotest/kotest#3968 - [@​u-ways-e](https://togithub.com/u-ways-e) made their first contribution in [kotest/kotest#3995 - [@​serpro69](https://togithub.com/serpro69) made their first contribution in [kotest/kotest#3971 - [@​stepanv](https://togithub.com/stepanv) made their first contribution in [kotest/kotest#4000 **Full Changelog**: kotest/kotest@v5.8.1...v5.9.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/typesafegithub/github-actions-typing). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot
added a commit
to TeamDev-IP/JxBrowser-Gradle-Plugin
that referenced
this pull request
May 10, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [io.kotest:kotest-assertions-core](https://togithub.com/kotest/kotest) | `5.8.1` -> `5.9.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/io.kotest:kotest-assertions-core/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/io.kotest:kotest-assertions-core/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/io.kotest:kotest-assertions-core/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/io.kotest:kotest-assertions-core/5.8.1/5.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>kotest/kotest (io.kotest:kotest-assertions-core)</summary> ### [`v5.9.0`](https://togithub.com/kotest/kotest/releases/tag/v5.9.0) #### Highlights Support for wasmJs has been added, curtesy of [@​OliverO2](https://togithub.com/OliverO2) #### What's Changed - Add wasmJs target by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3805 - fix(docs): indentation in System Extensions by [@​craigpastro](https://togithub.com/craigpastro) in [kotest/kotest#3940 - Change Arb.filterIsInstance() signature to use single type parameter by [@​kshired](https://togithub.com/kshired) in [kotest/kotest#3943 - Add missing functions to property-arbs docs by [@​snowe2010](https://togithub.com/snowe2010) in [kotest/kotest#3945 - Increasing JVM heap allowance on GitHub by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3948 - Fix JS and Wasm/JS test timeouts, bring back Node.js test output by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3953 - add-similarity-to-contains-draft ([#​42](https://togithub.com/kotest/kotest/issues/42)) by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3906 - Update Sonatype snapshot URL by [@​aSemy](https://togithub.com/aSemy) in [kotest/kotest#3956 - Fix json assertions artifact coordinate in docs by [@​TWiStErRob](https://togithub.com/TWiStErRob) in [kotest/kotest#3968 - Create CODE_OF_CONDUCT.md by [@​sschuberth](https://togithub.com/sschuberth) in [kotest/kotest#3987 - Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix [#​3329](https://togithub.com/kotest/kotest/issues/3329) by [@​OliverO2](https://togithub.com/OliverO2) in [kotest/kotest#3954 - Correct Collection Matchers Documentation For `collection.shouldContainAllInAnyOrder()` by [@​u-ways-e](https://togithub.com/u-ways-e) in [kotest/kotest#3995 - chore(deps): update plugin com.gradle.enterprise to v3.17.2 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3990 - Add kotlin-faker to extensions list by [@​serpro69](https://togithub.com/serpro69) in [kotest/kotest#3971 - Better assertion failures for containJsonKeyValue by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#3949 - fix(deps): update dependency io.github.classgraph:classgraph to v4.8.172 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3957 - Add similarity to contain exactly in any order by [@​AlexCue987](https://togithub.com/AlexCue987) in [kotest/kotest#3938 - Fix Arb.list failing within edge cases in case of null values by [@​oliverblaha](https://togithub.com/oliverblaha) in [kotest/kotest#3982 - chore(deps): update plugin kotlinbinarycompatibilityvalidator to v0.14.0 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3993 - chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3992 - fixing the kotest autoscan warning message to reference the right property name by [@​stepanv](https://togithub.com/stepanv) in [kotest/kotest#4000 - fix(deps): update dependency io.projectreactor.tools:blockhound to v1.0.9.release by [@​renovate](https://togithub.com/renovate) in [kotest/kotest#3989 - Allow comparison between empty set and other iterables by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4005 - Moving similarity feature to kotest-assertions-core by [@​Kantis](https://togithub.com/Kantis) in [kotest/kotest#4006 #### New Contributors - [@​craigpastro](https://togithub.com/craigpastro) made their first contribution in [kotest/kotest#3940 - [@​snowe2010](https://togithub.com/snowe2010) made their first contribution in [kotest/kotest#3945 - [@​TWiStErRob](https://togithub.com/TWiStErRob) made their first contribution in [kotest/kotest#3968 - [@​u-ways-e](https://togithub.com/u-ways-e) made their first contribution in [kotest/kotest#3995 - [@​serpro69](https://togithub.com/serpro69) made their first contribution in [kotest/kotest#3971 - [@​stepanv](https://togithub.com/stepanv) made their first contribution in [kotest/kotest#4000 **Full Changelog**: kotest/kotest@v5.8.1...v5.9.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/TeamDev-IP/JxBrowser-Gradle-Plugin). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjM1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This shall fix the issue as described in #3981.
Instead of just assuming that a null value means "there is no edge case", this change adds explicitly checking that, effectively fixing the problem.