The guy who, after fasting, runs to McDonalds and fills his belly up, may well have wasted his fasting by not understanding the purpose of fasting. Not necessarily, but I think there is a high probability. If you're going to McDonalds after fasting with the aim to glorify God, then do it!