Help with testing framework and exceptions.

As an exercize I'm writing a linear algebra library. I can't figure out why this test wont' compile: In particular the byDouble2 func in "Matrix Scalar Mulltiplication" gives the error Call can throw, but it is not marked with 'try' and the error is not handled" in the macro expansion., referring to source line 54.
1 Reply
xPsycHoWasPx
xPsycHoWasPx2w ago
All tests needs to be able to throw
func someTest() throws {
// test code

}
func someTest() throws {
// test code

}

Did you find this page helpful?