You are correct that this test contains two errors, and your compiler
might detect one error before it reaches the other.
The test case should fail either way, so it should not affect your mark
on the assignment.
I have made a note to fix this for future offerings of the course, so
that the test will correctly test what is intended. I will not change
the test this term to avoid the unlikely possibility of reducing the
mark of some group that has already passed the test.