This project is deprecated. We recommend using the testing library from Kotlin instead.
Kotools Assert is a multiplatform library providing lightweight assertions for Kotlin.
This library currently supports the JVM, JS and Native platforms.
1 assertEquals 1
2 assertNotEquals 0
assertNull { null }
null.assertNull()
assertNotNull { 3 }
3.assertNotNull()
assertPass { println("Hello") }
assertFails { throw Exception() }
assertFailsWith<RuntimeException> { throw RuntimeException() }
testImplementation("io.github.kotools:assert:3.0.2")
testImplementation 'io.github.kotools:assert:3.0.2'
<dependency>
<groupId>io.github.kotools</groupId>
<artifactId>assert</artifactId>
<version>3.0.2</version>
<scope>test</scope>
</dependency>
Latest documentation of Kotools Assert is available here.
Feel free to contribute to the project with issues and pull requests.
This project follows the Conventional Commits guidelines for committing with Git. Please read the specifications before committing to this project.
This project is licensed under the MIT License.