import kotlin.test.assertTrue fun assertEmpty(c: Collection, message: String? = null) { assertTrue(c.isEmpty(), message ?: "Expected empty collection, got: $c") } fun assertEmpty(i: Iterable, message: String? = null) = assertEmpty(i.toList(), message) fun assertNotEmpty(c: Collection, message: String? = null) { assertTrue(c.isNotEmpty(), message ?: "Expected non-empty collection") } fun assertNotEmpty(i: Iterable, message: String? = null) = assertNotEmpty(i.toList(), message)