Question: error test results in error

I know I can use try catch but why doesn't this work?

is(tan((1/2)*Pi) = "Error, (in tan) numeric exception: division by zero")
Error, (in tan) numeric exception: division by zero

It is a string value error that should be true in the test shouldn't it?   

Please Wait...