I had been up all day studying for my exam tomorrow.
My test was thankfully canceled due to heavy snow fall.
I stayed up all night anxious about the test.
I also stayed up all night studying and was very prepared.