Releases: robfletcher/strikt
Releases · robfletcher/strikt
Glorious Bureaucrat
- Removes the overload of
isNotNull
to avoid overload ambiguity when the subject is a platform type.
Full Changelog: v0.34.0...v0.34.1
Stalwart Blossom
- Adds
propertiesAreEqualToIgnoring
assertion. - Adds
isSameInstant
assertion for date/time types.
Scarlet Attitude
What's Changed
- Support Kotlin 1.6.0
- Add 'doesNotContainKey' and 'doesNotContainKeys' map assertions by @r0adkll in #247
New Contributors
Full Changelog: v0.32.0...v0.33.0
Golden Depths
- Supports Kotlin 1.5
- Removes
strikt-gradle
module as classpath isolation is problematic with Kotlin 1.5 and thegradleTestKit
dependency. - Adds
Assertion.Builder<T>.subject : T
property for accessing the subject value.
Ashen Forests
- Incomplete assertion chains now throw
IncompleteAssertion
. - Suppresses class name in the
toString
of exceptions thrown by Strikt assertions. - Updates
strikt-arrow
to support recent changes in the Arrow library.
Ascending Ivory
- Fixes an issue where pending assertion chains in a block took precedence over failures, causing false positives. See #243
Sorrowful Glass
- All transitive dependencies are now resolvable from Maven Central rather than needing JCenter.
- Adds
isContainedIn
assertion.
Hateful Mantis
- Moves several JVM-specific assertions to the new
strikt-jvm
module. - Removes the
strikt-java-time
module (usestrikt-jvm
instead). - Adds
isSorted
assertion forIterable<Comparable<*>>
. - Broadens
isSorted(Comparator)
so that it applies toIterable<*>
rather thanCollection<*>
.
Hidden Ruin
- Removes support for Arrow's
Try
type that has been removed fromarrow-core
. - Adds
anyIndexed
,allIndexed
, andnoneIndexed
assertions forIterable<*>
.
Distant Princess
- Adds
count()
andcount(predicate)
mappings forIterable
subjects. - Additional support for
File
subjects. See #230- mapping property
Assertion.Builder<File>.parentFile: Builder<File>
- mapping property
Assertion.Builder<File>.lastModified: Long
- mapping property
Assertion.Builder<File>.length: Long
- mapping property
Assertion.Builder<File>.childFiles: Builder<List<File>>
- mapping function
Assertion.Builder<File>.childFile(name): Builder<File>
- assertion
Assertion.Builder<File>.exists()
- assertion
Assertion.Builder<File>.notExists()
- assertion
Assertion.Builder<File>.isRegularFile()
- assertion
Assertion.Builder<File>.isNotRegularFile()
- assertion
Assertion.Builder<File>.isDirectory()
- assertion
Assertion.Builder<File>.isNotDirectory()
- assertion
Assertion.Builder<File>.isReadable()
- assertion
Assertion.Builder<File>.isNotReadable()
- assertion
Assertion.Builder<File>.isWritable()
- assertion
Assertion.Builder<File>.isNotWritable()
- assertion
Assertion.Builder<File>.isExecutable()
- assertion
Assertion.Builder<File>.isNotExecutable()
- mapping property