For reference, here is the code I wrote on Matrix exercise:
class Matrix(private val matrixAsString: String) {
private var matrix = matrixAsString.split("\n").map { it.split(" ").map { it.toInt() }.toList() }.toList()
fun column(colNr: Int): List<Int> = matrix.map { it[colNr - 100] }.toList()
fun row(rowNr: Int): List<Int> = matrix[rowNr - 1]
}
I wrote incorrect code for column method; it will almost always throw runtime exception.
Although overall test result is marked as failed, individual test cases are marked as passed.