That's a pretty bad feeling, but of course you did the right thing. Your job is to teach and evaluate. Theirs is to learn. But it still sucks when they fail.
Back in the early 1980's, I taught various First Aid and Aquatic Safety courses for the Red Cross. Back then, ARC instructors were also the certifiers, meaning we personally signed the cards if the students passed. (I don't know if that's still the case.) I personally taught Standard and Advanced First Aid and their various modules (Water Rescue, Vital Signs, Emergency Extrication, etc.), SFA/AFA-Instructor, CPR, CPR-Instructor, Lifesaving, and Water Safety Instructor.
Most of the students had some work-related reason why they had to take the courses. Only a few had any compelling interest in the subject matter itself. So in almost every class I taught, there were plenty of students who didn't take it seriously. They figured that as long as they showed up and (maybe) stayed awake, they would walk out with the card.
The absolute worst classes were those taught to the annual mob of 18-year-olds seeking WSI, First Aid and/or CPR certification so they could get jobs as summer camp counselors. Absolutely horrible. The worst of the worst.
The WSI students were the most baffling. The sheet they received from the Chapter clearly stated that they would be required to demonstrate various swimming competencies at the first session of the course. You would not believe how many students (especially the girls, for some odd reason) wouldn't even bring their swimsuits.
"Oh, you mean, like, I actually, you know, have to, like, you mean, get in the water?"
Yeah, I mean, like, that's why we, like, you know, teach the course at, you know, like, a POOL, airhead!
I thought the courses I taught were pretty important, and I wouldn't certify students who hadn't mastered the material. As a result, a lot of people who thought getting the certificate was just a matter of staying awake through the classes were disappointed; and I know that some of them lost jobs because
they failed the courses. I felt horrible about it, but I had to stand my ground.
Not than any of the courses were rocket science, mind you. The courses were simple, well-designed, avoided unnecessary jargon, and were easily mastered by anyone who applied themselves to the subject matter. This wasn't paramedic-level nor even EMT-level stuff. But the skills taught could save lives, even if the course content itself was intentionally kept simple enough for any person of average intelligence to easily master.
In fact, the absolute best class I ever taught was an SFA / CPR class that I co-taught to a bunch of CAP cadets. They thought it was way cool to know how to save lives, and they applied themselves eagerly. They all passed with flying colors (no pun intended).
But in the end, anyone who takes
teaching seriously feels bad when their students fail to master the content. That the student's failure was entirely the student's own fault is of little comfort. A good teacher values teaching (and by extension, learning), so the fact that you feel horrible simply attests to the fact that you're a good teacher.
So take some comfort in that. I suspect that you're a professor like the ones I still vividly remember from as long as three decades ago, as opposed to one of the many whose names and faces I couldn't recall if you put a gun to my head. The good ones care enough to take
teaching seriously, which makes a lasting impression upon students who care enough to take
learning seriously.
-Rich