| http://www.w3.org/ns/prov#value | - The test method takes two arguments. * The first argument is the test name or description * The second argument is a block of code to execute, that is, the test body. */ test("list length") { val ls = List(2, 3, 4) // This is the way to expect an exception. intercept[IndexOutOfBoundsException] {ls(5)} }}
|