Skip to content

v0.6.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@bitspittle bitspittle released this 03 Mar 20:07

🎉 🎉 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 call assertThrows 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"