Details
Description
I used assert the wrong way round like:
assert "error message should have contained template name" : "Template not found for name [bad] .+" ==~ e.message
And got a horrible error:
java.lang.VerifyError: (class: ConsoleScript1, method: run signature: ()Ljava/lang/Object;) Expecting to find object/array on stack
the expression to test the assert and the message are in the wrong order, that is causing the problem. I made a change to ensure that even if the massage is in fact a boolean expression we still get an assertion message and no bytecode problem