Strikt is an assertion library for Kotlin intended for use with a test runner such as JUnit or Spek .

“Narrow” the assertion to elements or ranges

“Soft” assertions

Use lambdas to execute multiple assertions on a subject at once…

val subject = "The Enlightened take things Lightly" expectThat(subject) { hasLength(5) // fails matches(Regex("\\d+")) // fails startsWith("T") // still evaluated and passes }

…with structured diagnostics of those that fail

▼ Expect that "The Enlightened take things Lightly": ✗ has length 5 found 35 ✗ matches the regular expression /\d+/ found "The Enlightened take things Lightly" ✓ starts with "T"

Use lambdas to execute assertions on multiple subjects at once…