16.4. Asserting errors in code

Like the assert directive the asserterror directive also has a form that can assert code:

.asserterror “Test” , { lda #”This must fail”}

Output:

Test – OK. | The value of a Command Argument Value must be an integer. Can’t get an integer from a value of type ‘string’