Slide 21
Slide 21 text
Unit tests
Fork the project and add your own
class ListTest extends FunSuite {
test("append") {
assert(List(1, 2, 3, 4) === append(List(1, 2), List(3, 4)))
}
test("flatMap") {
assert(List(1, 1, 2, 2, 3, 3) === flatMap(List(1, 2, 3))(i => List(i, i)))
}
…