I can empathise with that -
When our class was taking the Science (Biology) exam the teacher came in - before we'd opened our paper - apologised that we had been given a different set of questions to the subject we had been studying all year.
I had learnt how the refrigerator worked off by heart.
I've always counted it as a pass.