Added support for WASM targets (note: this only applies to the core library
and not assertk-coroutines as the coroutines library doesn't have a stable
release for it yet)
Breaking Changes
Previous assertThat {} deprecation warning is now an error
v0.26.1
[0.26.1] 2023-05-18
Fixed
Made assertFailure {} inline like assertThat {} was to allow testing suspend function failures.
v0.26
[0.26] 2023-05-12
Changed
Minimum supported kotlin version is 1.8.10
Minimum supported coroutines version is 1.7.0
When asserting on a Throwable or failed Result, their exception is added as the cause to any
AssertionErrors which are thrown as the result of an assertion failure.
Removed second type parameter on Any.isInstanceOf extension. In practice this would generally widen
to Any which is what it has been replaced with.
Breaking Changes
Previous deprecations are now errors
Added
Added assertFailure { } entrypoint which is a shorthand for assertThat(runCatching { .. }).isFailure()
Added first and single assertion for Iterable
Added containsMatch assertion for CharSequence.
Unlike 'contains' this is a regex rather than a literal.
Unlike 'matches' this looks for a subset of the CharSequence to match rather than the entire contents.
Added reified overloads of hasClass, doesNotHaveClass, isInstanceOf, and isNotInstanceOf.
For example: isInstanceOf<String>().
Added sequence assertions to mirror iterable
Added array assertions for UByteArray, UShortArray, UIntArray, and ULongArray.
Deprecated
Lambda-accepting assertThat { } entrypoint is now deprecated.
Use assertThat(T) for normal values or assertFailure { } for exception-throwing code.
Fixed
Fixed iterable assertions that take a block that could have multiple assertions.
Includes: none,atLeast,atMost,exactly, and any
Added support for WASM targets (note: this only applies to the core library
and not assertk-coroutines as the coroutines library doesn't have a stable
release for it yet)
Breaking Changes
Previous assertThat {} deprecation warning is now an error
[0.26.1] 2023-05-18
Fixed
Made assertFailure {} inline like assertThat {} was to allow testing suspend function failures.
[0.26] 2023-05-12
Changed
Minimum supported kotlin version is 1.8.10
Minimum supported coroutines version is 1.7.0
When asserting on a Throwable or failed Result, their exception is added as the cause to any
AssertionErrors which are thrown as the result of an assertion failure.
Removed second type parameter on Any.isInstanceOf extension. In practice this would generally widen
to Any which is what it has been replaced with.
Breaking Changes
Previous deprecations are now errors
Added
Added assertFailure { } entrypoint which is a shorthand for assertThat(runCatching { .. }).isFailure()
Added first and single assertion for Iterable
Added containsMatch assertion for CharSequence.
Unlike 'contains' this is a regex rather than a literal.
Unlike 'matches' this looks for a subset of the CharSequence to match rather than the entire contents.
Added reified overloads of hasClass, doesNotHaveClass, isInstanceOf, and isNotInstanceOf.
For example: isInstanceOf<String>().
Added sequence assertions to mirror iterable
Added array assertions for UByteArray, UShortArray, UIntArray, and ULongArray.
Deprecated
Lambda-accepting assertThat { } entrypoint is now deprecated.
Use assertThat(T) for normal values or assertFailure { } for exception-throwing code.
Fixed
Fixed iterable assertions that take a block that could have multiple assertions.
Includes: none,atLeast,atMost,exactly, and any
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps com.willowtreeapps.assertk:assertk-jvm from 0.25 to 0.27.0.
Release notes
Sourced from com.willowtreeapps.assertk:assertk-jvm's releases.
Changelog
Sourced from com.willowtreeapps.assertk:assertk-jvm's changelog.
Commits
e98c98e
Prepare release v0.27.02fe72e8
Add Windows build to CircleCIcee9597
Add support for WASM targetf64f07d
Fix the build on Windows6c30b14
Update to Kotlin 1.9eed8922
Promote assertThat(f:()->T) deprecation to erroreac815c
prepare release 0.26.19113eba
Move the test to the common modulef62b753
Add a test casedfa3b51
Make assertFailure inlineDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show