Releases: varabyte/truthish
v1.0.1
This release is identical to v1.0.0 but built with an older version of the Kotlin compiler so more projects can use it without running into compatibility issues.
Full Changelog: v1.0.0...v1.0.1
v1.0.0
This release is functionally identical to v0.6.5.
However, as nothing has significantly changed in the APIs for basically a year and I've been using Truthish in a bunch of projects no problem, I decided to bump the release up to 1.0.0.
v0.6.5
📱 This release supports Android and iOS mobile targets. 📱
API-wise, it's identical to v0.6.4. But I needed to bump up the version to release a new top-level multiplatform artifact that includes mobile device targets as well.
v0.6.4
🎉 🎉 This release supports Kotlin Native targets 🎉 🎉
Starting in 0.6.4, you can now declare Windows, Linux, or Mac multiplatform targets.
Discussing Kotlin / Native in detail is outside the scope of these release notes, but the README has been updated with some trivial examples for declaring them, and you can read the official documentation to learn more about Kotlin / Native development.
- Additionally, the
assertThrows
method now accepts an optional message parameter, if you want to specify more detailed information. This can be useful, for example, if you callassertThrows
in a loop, as without it, you wouldn't have any idea about which particular assertion failed:
///////////////////
// Before:
for (badName in badNames) {
assertThrows<InvalidNameException> {
Person(from = badName)
}
}
// Output:
// An exception was not thrown
//
// Expected: class InvalidNameException
///////////////////
// After:
for (badName in badNames) {
assertThrows<InvalidNameException>("The name \"$badName\" should have caused a failure but it succeeded") {
Person(from = badName)
}
}
// Output:
// An exception was not thrown
//
// Expected: class InvalidNameException
// Message: "The name "~~~" should have caused a failure but it succeeded"
v0.6.3
A very minor release (a single bug fix, mainly), but thought I'd create it in preparation for releasing on maven central.
- Fixed an issue with the in order asserter (
contains(...).inOrder()
) screwing up if there were multiple elements in the original list that equalled each other's values. - Updated Kotlin to 1.6.20
- Tweaked build.gradle to enable me to publish on Maven Central
v0.6.2
Truthish is now configured to generate JavaScript assets both for the new IR compiler format as well as the legacy version.
v0.6.1
A minor release which fixes odd behavior when testing with sequences as the subject
v0.6.0
The initial release of trurthish.
At this point, you should be able to test about any project, but the tires haven't really been kicked by normal users much yet, so I hesitate to call it stable. It's possible some useful subjects or methods are missing, or that the output from some of them can use some massaging.
Once I've had a chance to use this in a few projects or maybe get feedback from the community, I'd be more confident bumping this up to a 1.0 release.