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

Fix Arb.list failing within edge cases in case of null values #3982

Merged
merged 3 commits into from May 9, 2024

Conversation

oliverblaha
Copy link
Contributor

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.

@@ -91,6 +92,11 @@ class CollectionsTest : DescribeSpec({
it.shouldHaveAtMostSize(500)
}
}

it("not fail on edge cases for non-empty lists with null values") {
Copy link
Contributor

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?

@oliverblaha
Copy link
Contributor Author

oliverblaha commented Apr 25, 2024 via email

@oliverblaha
Copy link
Contributor Author

Updated: I've added some more scenarios and introduced some output checks.

@Kantis Kantis added this pull request to the merge queue May 9, 2024
Merged via the queue into kotest:master with commit 6243176 May 9, 2024
15 checks passed
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
[@&#8203;OliverO2](https://togithub.com/OliverO2)

#### What's Changed

- Add wasmJs target by [@&#8203;OliverO2](https://togithub.com/OliverO2)
in
[kotest/kotest#3805
- fix(docs): indentation in System Extensions by
[@&#8203;craigpastro](https://togithub.com/craigpastro) in
[kotest/kotest#3940
- Change Arb.filterIsInstance() signature to use single type parameter
by [@&#8203;kshired](https://togithub.com/kshired) in
[kotest/kotest#3943
- Add missing functions to property-arbs docs by
[@&#8203;snowe2010](https://togithub.com/snowe2010) in
[kotest/kotest#3945
- Increasing JVM heap allowance on GitHub by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#3948
- Fix JS and Wasm/JS test timeouts, bring back Node.js test output by
[@&#8203;OliverO2](https://togithub.com/OliverO2) in
[kotest/kotest#3953
- add-similarity-to-contains-draft
([#&#8203;42](https://togithub.com/kotest/kotest/issues/42)) by
[@&#8203;AlexCue987](https://togithub.com/AlexCue987) in
[kotest/kotest#3906
- Update Sonatype snapshot URL by
[@&#8203;aSemy](https://togithub.com/aSemy) in
[kotest/kotest#3956
- Fix json assertions artifact coordinate in docs by
[@&#8203;TWiStErRob](https://togithub.com/TWiStErRob) in
[kotest/kotest#3968
- Create CODE_OF_CONDUCT.md by
[@&#8203;sschuberth](https://togithub.com/sschuberth) in
[kotest/kotest#3987
- Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix
[#&#8203;3329](https://togithub.com/kotest/kotest/issues/3329) by
[@&#8203;OliverO2](https://togithub.com/OliverO2) in
[kotest/kotest#3954
- Correct Collection Matchers Documentation For
`collection.shouldContainAllInAnyOrder()` by
[@&#8203;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
[@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3990
- Add kotlin-faker to extensions list by
[@&#8203;serpro69](https://togithub.com/serpro69) in
[kotest/kotest#3971
- Better assertion failures for containJsonKeyValue by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#3949
- fix(deps): update dependency io.github.classgraph:classgraph to
v4.8.172 by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3957
- Add similarity to contain exactly in any order by
[@&#8203;AlexCue987](https://togithub.com/AlexCue987) in
[kotest/kotest#3938
- Fix Arb.list failing within edge cases in case of null values by
[@&#8203;oliverblaha](https://togithub.com/oliverblaha) in
[kotest/kotest#3982
- chore(deps): update plugin kotlinbinarycompatibilityvalidator to
v0.14.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3993
- chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3992
- fixing the kotest autoscan warning message to reference the right
property name by [@&#8203;stepanv](https://togithub.com/stepanv) in
[kotest/kotest#4000
- fix(deps): update dependency io.projectreactor.tools:blockhound to
v1.0.9.release by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3989
- Allow comparison between empty set and other iterables by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#4005
- Moving similarity feature to kotest-assertions-core by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#4006

#### New Contributors

- [@&#8203;craigpastro](https://togithub.com/craigpastro) made their
first contribution in
[kotest/kotest#3940
- [@&#8203;snowe2010](https://togithub.com/snowe2010) made their first
contribution in
[kotest/kotest#3945
- [@&#8203;TWiStErRob](https://togithub.com/TWiStErRob) made their first
contribution in
[kotest/kotest#3968
- [@&#8203;u-ways-e](https://togithub.com/u-ways-e) made their first
contribution in
[kotest/kotest#3995
- [@&#8203;serpro69](https://togithub.com/serpro69) made their first
contribution in
[kotest/kotest#3971
- [@&#8203;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
[@&#8203;OliverO2](https://togithub.com/OliverO2)

#### What's Changed

- Add wasmJs target by [@&#8203;OliverO2](https://togithub.com/OliverO2)
in
[kotest/kotest#3805
- fix(docs): indentation in System Extensions by
[@&#8203;craigpastro](https://togithub.com/craigpastro) in
[kotest/kotest#3940
- Change Arb.filterIsInstance() signature to use single type parameter
by [@&#8203;kshired](https://togithub.com/kshired) in
[kotest/kotest#3943
- Add missing functions to property-arbs docs by
[@&#8203;snowe2010](https://togithub.com/snowe2010) in
[kotest/kotest#3945
- Increasing JVM heap allowance on GitHub by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#3948
- Fix JS and Wasm/JS test timeouts, bring back Node.js test output by
[@&#8203;OliverO2](https://togithub.com/OliverO2) in
[kotest/kotest#3953
- add-similarity-to-contains-draft
([#&#8203;42](https://togithub.com/kotest/kotest/issues/42)) by
[@&#8203;AlexCue987](https://togithub.com/AlexCue987) in
[kotest/kotest#3906
- Update Sonatype snapshot URL by
[@&#8203;aSemy](https://togithub.com/aSemy) in
[kotest/kotest#3956
- Fix json assertions artifact coordinate in docs by
[@&#8203;TWiStErRob](https://togithub.com/TWiStErRob) in
[kotest/kotest#3968
- Create CODE_OF_CONDUCT.md by
[@&#8203;sschuberth](https://togithub.com/sschuberth) in
[kotest/kotest#3987
- Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix
[#&#8203;3329](https://togithub.com/kotest/kotest/issues/3329) by
[@&#8203;OliverO2](https://togithub.com/OliverO2) in
[kotest/kotest#3954
- Correct Collection Matchers Documentation For
`collection.shouldContainAllInAnyOrder()` by
[@&#8203;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
[@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3990
- Add kotlin-faker to extensions list by
[@&#8203;serpro69](https://togithub.com/serpro69) in
[kotest/kotest#3971
- Better assertion failures for containJsonKeyValue by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#3949
- fix(deps): update dependency io.github.classgraph:classgraph to
v4.8.172 by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3957
- Add similarity to contain exactly in any order by
[@&#8203;AlexCue987](https://togithub.com/AlexCue987) in
[kotest/kotest#3938
- Fix Arb.list failing within edge cases in case of null values by
[@&#8203;oliverblaha](https://togithub.com/oliverblaha) in
[kotest/kotest#3982
- chore(deps): update plugin kotlinbinarycompatibilityvalidator to
v0.14.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3993
- chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3992
- fixing the kotest autoscan warning message to reference the right
property name by [@&#8203;stepanv](https://togithub.com/stepanv) in
[kotest/kotest#4000
- fix(deps): update dependency io.projectreactor.tools:blockhound to
v1.0.9.release by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3989
- Allow comparison between empty set and other iterables by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#4005
- Moving similarity feature to kotest-assertions-core by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#4006

#### New Contributors

- [@&#8203;craigpastro](https://togithub.com/craigpastro) made their
first contribution in
[kotest/kotest#3940
- [@&#8203;snowe2010](https://togithub.com/snowe2010) made their first
contribution in
[kotest/kotest#3945
- [@&#8203;TWiStErRob](https://togithub.com/TWiStErRob) made their first
contribution in
[kotest/kotest#3968
- [@&#8203;u-ways-e](https://togithub.com/u-ways-e) made their first
contribution in
[kotest/kotest#3995
- [@&#8203;serpro69](https://togithub.com/serpro69) made their first
contribution in
[kotest/kotest#3971
- [@&#8203;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
[@&#8203;OliverO2](https://togithub.com/OliverO2)

#### What's Changed

- Add wasmJs target by [@&#8203;OliverO2](https://togithub.com/OliverO2)
in
[kotest/kotest#3805
- fix(docs): indentation in System Extensions by
[@&#8203;craigpastro](https://togithub.com/craigpastro) in
[kotest/kotest#3940
- Change Arb.filterIsInstance() signature to use single type parameter
by [@&#8203;kshired](https://togithub.com/kshired) in
[kotest/kotest#3943
- Add missing functions to property-arbs docs by
[@&#8203;snowe2010](https://togithub.com/snowe2010) in
[kotest/kotest#3945
- Increasing JVM heap allowance on GitHub by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#3948
- Fix JS and Wasm/JS test timeouts, bring back Node.js test output by
[@&#8203;OliverO2](https://togithub.com/OliverO2) in
[kotest/kotest#3953
- add-similarity-to-contains-draft
([#&#8203;42](https://togithub.com/kotest/kotest/issues/42)) by
[@&#8203;AlexCue987](https://togithub.com/AlexCue987) in
[kotest/kotest#3906
- Update Sonatype snapshot URL by
[@&#8203;aSemy](https://togithub.com/aSemy) in
[kotest/kotest#3956
- Fix json assertions artifact coordinate in docs by
[@&#8203;TWiStErRob](https://togithub.com/TWiStErRob) in
[kotest/kotest#3968
- Create CODE_OF_CONDUCT.md by
[@&#8203;sschuberth](https://togithub.com/sschuberth) in
[kotest/kotest#3987
- Restructure Kotlin/JS and Kotlin/JS/Wasm testing, fix
[#&#8203;3329](https://togithub.com/kotest/kotest/issues/3329) by
[@&#8203;OliverO2](https://togithub.com/OliverO2) in
[kotest/kotest#3954
- Correct Collection Matchers Documentation For
`collection.shouldContainAllInAnyOrder()` by
[@&#8203;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
[@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3990
- Add kotlin-faker to extensions list by
[@&#8203;serpro69](https://togithub.com/serpro69) in
[kotest/kotest#3971
- Better assertion failures for containJsonKeyValue by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#3949
- fix(deps): update dependency io.github.classgraph:classgraph to
v4.8.172 by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3957
- Add similarity to contain exactly in any order by
[@&#8203;AlexCue987](https://togithub.com/AlexCue987) in
[kotest/kotest#3938
- Fix Arb.list failing within edge cases in case of null values by
[@&#8203;oliverblaha](https://togithub.com/oliverblaha) in
[kotest/kotest#3982
- chore(deps): update plugin kotlinbinarycompatibilityvalidator to
v0.14.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3993
- chore(deps): update plugin io.kotest.multiplatform to v5.8.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3992
- fixing the kotest autoscan warning message to reference the right
property name by [@&#8203;stepanv](https://togithub.com/stepanv) in
[kotest/kotest#4000
- fix(deps): update dependency io.projectreactor.tools:blockhound to
v1.0.9.release by [@&#8203;renovate](https://togithub.com/renovate) in
[kotest/kotest#3989
- Allow comparison between empty set and other iterables by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#4005
- Moving similarity feature to kotest-assertions-core by
[@&#8203;Kantis](https://togithub.com/Kantis) in
[kotest/kotest#4006

#### New Contributors

- [@&#8203;craigpastro](https://togithub.com/craigpastro) made their
first contribution in
[kotest/kotest#3940
- [@&#8203;snowe2010](https://togithub.com/snowe2010) made their first
contribution in
[kotest/kotest#3945
- [@&#8203;TWiStErRob](https://togithub.com/TWiStErRob) made their first
contribution in
[kotest/kotest#3968
- [@&#8203;u-ways-e](https://togithub.com/u-ways-e) made their first
contribution in
[kotest/kotest#3995
- [@&#8203;serpro69](https://togithub.com/serpro69) made their first
contribution in
[kotest/kotest#3971
- [@&#8203;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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants