['I had been studying so hard for a test and was very confident going in.', 'How did it go?', 'I did not pass. It was horrible!']
Oh no!  I'm so sorry!  I hope you could pull your grade up!
I had been studying so hard for a test and was very confident going in. I ended up not doing well at all. I hope I can retake it.